lambofgod Posted August 6, 2007 Report 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 Quote Link to comment Share on other sites More sharing options...
tyme Posted August 6, 2007 Report Share Posted August 6, 2007 Try this site or consider purchasing a book if you prefer something you can access off-line. Quote Link to comment Share on other sites More sharing options...
yossarian Posted August 6, 2007 Report Share Posted August 6, 2007 Thanks for the pointer, tyme. I'm gonna take a look at it, looks interesting. Quote Link to comment Share on other sites More sharing options...
lambofgod Posted August 7, 2007 Author Report Share Posted August 7, 2007 Thanks a lot Tyme. Quote Link to comment Share on other sites More sharing options...
dexter11 Posted August 7, 2007 Report 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. Quote Link to comment Share on other sites More sharing options...
iphitus Posted August 7, 2007 Report 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 Quote Link to comment Share on other sites More sharing options...
Greg2 Posted August 7, 2007 Report 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. Quote Link to comment Share on other sites More sharing options...
lambofgod Posted August 7, 2007 Author Report 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 Quote Link to comment Share on other sites More sharing options...
lambofgod Posted August 7, 2007 Author Report 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. Quote Link to comment Share on other sites More sharing options...
dexter11 Posted August 7, 2007 Report 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. Quote Link to comment Share on other sites More sharing options...
lambofgod Posted August 8, 2007 Author Report 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.