1

Can anyone recommend a good IDE for general C coding and kernel development under Linux?

A few conditions would be:

  1. NOT ECLIPSE - or any other heavy-weight Java based monstrosity that has esoteric compatibility issues, and runs like a pig.

  2. Must work and play nice with Cygwin - or other ways of running it remotely (through X, or - I'm open to alternatives).

2
  • I have never seen any kernel-related IDE, but it seems that Emacs and Vim are quite popular among kernel hackers. Nov 10, 2010 at 17:04
  • "Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." Reference: What topics can I ask about here?
    – Anil
    Jan 29, 2014 at 22:12

6 Answers 6

4

KDevelop is a wonderful IDE and it actually supports some Kernel-type of projects such as writing device drivers, etc.

2
  • Will definitely check out! Thanks!
    – Brad
    Nov 10, 2010 at 18:14
  • really wonderful with least setup overhead! Feb 9, 2019 at 14:25
3

Isn't vim + ctags + gdb enough?

3
  • That has been my mainstay for many, many years now - Just seeing what else may be out there for a more integrated and graphical environment. You forgot cscope, too ;-)
    – Brad
    Nov 10, 2010 at 17:01
  • 3
    Nay! Nay! Listen not to the 6m heretics! Follow the true faith! Use emacs! Nov 10, 2010 at 17:19
  • 2
    [[ Flag last comment as inappropriate, spam, and/or porn ;-) ]]]
    – Brad
    Nov 10, 2010 at 18:08
0

In short no.

I used pida for a while, which was cool, but a bit buggy. Looks like they've had another release since then so might be worth a try. It's python focused but perfectly usable for other things. http://pida.co.uk

I use gvim, with the git plugin http://github.com/motemen/git-vim

And just make tags, gitk, gitg, git grep.

0

Code::Blocks I use it for both app dev and kernel dev.
Now I was scared by Eclipse as well and for the same reasons.
But it ended up being the only IDE I found so far that is able to handle the set of Linux kernel symbols for the WHOLE kernel source tree (functions, defines, structures, everything). It is able to parse the whole kernel sources in a decent time, some tens of minutes (one time operation for each kernel tree). So I at least use it as a very smart symbol browser.
What does this bring you? Full instant code navigation:
When studying kernel and developing kernel modules, this happens to be a HUGE time saver: To follow a function call, move the mouse cursor to the (called) function name, press Ctrl, click on the symbol, bingo, it loads the source module and instantly gets you to the function source code. Press the back arrow, you're back at the call place.
You can follow whole call chains / stacks / programming trees this way, and just naturally following code paths. Link from a var usage to a var definition, then follow up to the struct definitions and back...
And finally, I found that Eclipse was actually perfectly integrated in Linux:
It runs just like a native app and is not sluggish like I expected it to be. I didn't feel its large size. Now to get it working and achieve that, I had to install the latest / greatest Sun Java and make that the default java machine -- the open source Java package didn't cut it.

Just my 10c...

0

Well, NetBeans is a java monstrosity, but it's bearable, even on my netbook. I like the vi/vim plugin, and the undockable windows so that you can have a nice big editor window with the other stuff off in a separate window. Yes, it does a lot more than just Java, even C.

screenshots on my site

0

vim + gedit + acme, combination.

vim is good for console environment.

gedit with plugins is good for multiple files open.

acme just another way to open multiple files.

Not the answer you're looking for? Browse other questions tagged or ask your own question.