问题描述:

can someone suggest me best IDE to use in linux environment for kernel & user level development for c/c++ ?

Also how can we debug & test our code in Linux user & kernel application ?

网友答案:

Don't use any IDE; use a separate editor (like emacs, or gedit, perhaps geany). The use a compiler gcc or g++ (don't forget the -g -Wall options to it). Use gdb to debug your code. See this answer for much more details (e.g. use make, git ....)

Don't start kernel level development before mastering application level development and Linux syscalls. See http://advancedlinuxprogramming.com/

网友答案:

QT Creator is very good IDE for user-land development. I think it can be used with User-Mode Linux, note that I have not tried it with this setup...

网友答案:

For the debug process, you can use gdb, wich is just perfect when you know exactly how it works.

For IDE, I personally use vim + a terminal with a shell, but you can use for instance anjuta or kdevelop.

网友答案:

For Kernel development, I use {x,}emacs and cscope - cscope is a very useful tool for finding your way around source code, and the linux source is big enough that most people don't know every bit of it. I would also recommend LXR, the Linux Cross Reference site. It has all the soruce code, and you can search for a word, and quickly find all the references to it. Make finding "where is this done" much easier - and you can look back several generations of source to see how/if it has changed.

Obviously, along with that, you'll need the gcc compiler and related tools.

I've never used KGDB, but it's a kernel debugger for Linux.

For application development on Linux, you can use emacs + gcc + gdb + cscope (that's what I do), but I know a lot of people use Eclips. CodeBlocks isn't bad either.

It really comes down to taste and preference.

网友答案:

Eclipse with CDT and RSE plugins is the usual answer. See http://www.eclipse.org/cdt/

相关阅读:
Top