lambofgod Posted August 6, 2007 Share Posted August 6, 2007 Hi! I am keen on knowing more about kernel programming using C++, i do remember reading articles which talk about C++ being a bad choice for kernel programming but this was a while ago when the compilers were not half as good as they are now. Any suggestions about where i can start, i am a novice when it comes to kernel programming and have always been fascinated with it. If i were to begin, where do i start from? I want to start from the basics since i know nothing about kernel programming and its architecture. Thanks Link to comment Share on other sites More sharing options...
tyme Posted August 6, 2007 Share Posted August 6, 2007 Try this site or consider purchasing a book if you prefer something you can access off-line. Link to comment Share on other sites More sharing options...
yossarian Posted August 6, 2007 Share Posted August 6, 2007 Thanks for the pointer, tyme. I'm gonna take a look at it, looks interesting. Link to comment Share on other sites More sharing options...
lambofgod Posted August 7, 2007 Author Share Posted August 7, 2007 Thanks a lot Tyme. Link to comment Share on other sites More sharing options...
dexter11 Posted August 7, 2007 Share Posted August 7, 2007 Linux kernel is written in C not C++. And if memory serves well Linus doesn't like the idea of C++ in the Linux kernel. If you're still interested you can try Haiku. It's written fully in C++ AFAIK. Link to comment Share on other sites More sharing options...
iphitus Posted August 7, 2007 Share Posted August 7, 2007 I have this one myself, a great introduction to the kernel and how it operates. From this you could start messing around, and then delve into something a bit more complicated. Â http://www.amazon.com/Linux-Kernel-Develop...s/dp/0672327201 Â After that, there's the in kernel Documentation/, linux device drivers (3rd Ed) - available free online too, and probably other books I don't know. Â Careful buying books, that you get the latest edition, otherwise you'll end up with a useless book about Kernel 2.4. Things have changed a *lot* since then, so don't even consider old editions. Â James Link to comment Share on other sites More sharing options...
Greg2 Posted August 7, 2007 Share Posted August 7, 2007 Linux kernel is written in C not C++. And if memory serves well Linus doesn't like the idea of C++ in the Linux kernel. Very good point dexter, and I can't over emphasize starting with an 'old' kernel, and starting here: CompleteNewbies, or you will become overwhelmed with all the code in a new kernels. Link to comment Share on other sites More sharing options...
lambofgod Posted August 7, 2007 Author Share Posted August 7, 2007 (edited) Hey, I just wanted to say that i do know for a fact that the Linux kernel is written in C and its applications are written either in C or C++ on Gtk+ or Gtkmm (C++) . I just wanted to know if C++ was being used in the newer versions. Thanks Edited August 7, 2007 by lambofgod Link to comment Share on other sites More sharing options...
lambofgod Posted August 7, 2007 Author Share Posted August 7, 2007 Thanks a lot iphitus, i just found out if the book was available, was told that i could come back in a week and get a copy. Link to comment Share on other sites More sharing options...
dexter11 Posted August 7, 2007 Share Posted August 7, 2007 Hey, I just wanted to say that i do know for a fact that the Linux kernel is written in C and its applications are written either in C or C++ on Gtk+ or Gtkmm (C++) . I just wanted to know if C++ was being used in the newer versions. Thanks AFAIk no. It's written only in C. Besides if you are just started to learn about kernels then you should start something which was written for teaching. Like Minix 1 or 2 or GNU/Fiwix. There should be others too. Link to comment Share on other sites More sharing options...
lambofgod Posted August 8, 2007 Author Share Posted August 8, 2007 Thanks Dexter! I was under the impression that C++ was being used in recent times since it handles exceptions better than C, and also because of its OOP approach. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now