Jump to content

Where to start from?


Recommended Posts

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

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

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

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 by lambofgod
Link to comment
Share on other sites

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...