OSDev.org

The Place to Start for Operating System Developers
It is currently Wed Apr 24, 2024 8:51 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Which IDE to use for (freestanding) C?
PostPosted: Thu Oct 15, 2015 11:45 am 
Offline
Member
Member
User avatar

Joined: Wed Aug 05, 2015 5:33 pm
Posts: 159
Location: Drenthe, Netherlands
I've been using C again after a long long time (and loving it). But I'm getting to the point where it would be nice to at least have auto-completion for code I've written. Other nice features would be templates when creating new files and (some) integration with auto-tools and/or cmake.

Using sublimetext 3 at the moment and looking at the Netbeans IDE but it got me wondering what everyone using C for osdev is using a they're IDE. Maybe you all have some other options I might look at.

For me it must run on Ubuntu (Mate) so Windows/Mac options aren't very helpful. But feel free to trow them in there.

_________________
"Always code as if the guy who ends up maintaining it will be a violent psychopath who knows where you live." - John F. Woods

Failed project: GoOS - https://github.com/nutterts/GoOS


Top
 Profile  
 
 Post subject: Re: Which IDE to use for (freestanding) C?
PostPosted: Thu Oct 15, 2015 12:33 pm 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4594
Location: Chichester, UK
Eclipse. CodeBlocks is pretty good too.


Top
 Profile  
 
 Post subject: Re: Which IDE to use for (freestanding) C?
PostPosted: Thu Oct 15, 2015 1:09 pm 
Offline
Member
Member

Joined: Mon Feb 02, 2015 7:11 pm
Posts: 898
Sublime Text 3 =)

_________________
https://github.com/kiznit/rainbow-os


Top
 Profile  
 
 Post subject: Re: Which IDE to use for (freestanding) C?
PostPosted: Thu Oct 15, 2015 2:01 pm 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 3:45 am
Posts: 9301
Location: On the balcony, where I can actually keep 1½m distance
I like KDevelop. Mostly for reasons beyond C.

_________________
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]


Top
 Profile  
 
 Post subject: Re: Which IDE to use for (freestanding) C?
PostPosted: Thu Oct 15, 2015 2:36 pm 
Offline
Member
Member

Joined: Sat Mar 01, 2014 2:59 pm
Posts: 1146
iansjack wrote:
Eclipse.
That would be like using Visual Studio to develop Java applications.

_________________
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing


Top
 Profile  
 
 Post subject: Re: Which IDE to use for (freestanding) C?
PostPosted: Thu Oct 15, 2015 2:48 pm 
Offline
Member
Member
User avatar

Joined: Wed Aug 05, 2015 5:33 pm
Posts: 159
Location: Drenthe, Netherlands
onlyonemac wrote:
iansjack wrote:
Eclipse.
That would be like using Visual Studio to develop Java applications.
What would you suggest?

_________________
"Always code as if the guy who ends up maintaining it will be a violent psychopath who knows where you live." - John F. Woods

Failed project: GoOS - https://github.com/nutterts/GoOS


Top
 Profile  
 
 Post subject: Re: Which IDE to use for (freestanding) C?
PostPosted: Thu Oct 15, 2015 2:53 pm 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4594
Location: Chichester, UK
onlyonemac wrote:
iansjack wrote:
Eclipse.
That would be like using Visual Studio to develop Java applications.

What a strange comment.

I can only assume that you have never used Eclipse and have some sort of idea that it is a Java programming environment. That is an error.


Top
 Profile  
 
 Post subject: Re: Which IDE to use for (freestanding) C?
PostPosted: Thu Oct 15, 2015 2:59 pm 
Offline
Member
Member
User avatar

Joined: Wed Aug 05, 2015 5:33 pm
Posts: 159
Location: Drenthe, Netherlands
iansjack wrote:
onlyonemac wrote:
iansjack wrote:
Eclipse.
That would be like using Visual Studio to develop Java applications.

What a strange comment.

I can only assume that you have never used Eclipse and have some sort of idea that it is a Java programming environment. That is an error.
I agree it's weird because there are no alternatives given.

But please let's not get that deep into this or turn it into a "what's better" discussion. That's in the eye of the beholder.

For me, eclipse-cdt sounds good. But there might be more lightweight options to try.

_________________
"Always code as if the guy who ends up maintaining it will be a violent psychopath who knows where you live." - John F. Woods

Failed project: GoOS - https://github.com/nutterts/GoOS


Top
 Profile  
 
 Post subject: Re: Which IDE to use for (freestanding) C?
PostPosted: Thu Oct 15, 2015 3:22 pm 
Offline
Member
Member
User avatar

Joined: Wed Aug 05, 2015 5:33 pm
Posts: 159
Location: Drenthe, Netherlands
kiznit wrote:
Sublime Text 3 =)


Srry I missed this. How you get autocompletion working? Am I that blind?

_________________
"Always code as if the guy who ends up maintaining it will be a violent psychopath who knows where you live." - John F. Woods

Failed project: GoOS - https://github.com/nutterts/GoOS


Top
 Profile  
 
 Post subject: Re: Which IDE to use for (freestanding) C?
PostPosted: Thu Oct 15, 2015 3:43 pm 
Offline
Member
Member

Joined: Mon Feb 02, 2015 7:11 pm
Posts: 898
Nutterts wrote:
Srry I missed this. How you get autocompletion working? Am I that blind?


My bad, I missed you needed auto-completion.

Well it does work, but only within a file... It won't auto complete stuff from other files. Which is too bad.

_________________
https://github.com/kiznit/rainbow-os


Top
 Profile  
 
 Post subject: Re: Which IDE to use for (freestanding) C?
PostPosted: Thu Oct 15, 2015 3:59 pm 
Offline
Member
Member
User avatar

Joined: Wed Aug 05, 2015 5:33 pm
Posts: 159
Location: Drenthe, Netherlands
kiznit wrote:
It won't auto complete stuff from other files. Which is too bad.


Exactly... use it for everything, replaced np++ for me and some plugins do provide auto completion for other languages. Just can't seem to find something for C to at-least do that. I could work around the other things but code completion would free me from quite allot of stupid typo-errors when compiling.

_________________
"Always code as if the guy who ends up maintaining it will be a violent psychopath who knows where you live." - John F. Woods

Failed project: GoOS - https://github.com/nutterts/GoOS


Top
 Profile  
 
 Post subject: Re: Which IDE to use for (freestanding) C?
PostPosted: Thu Oct 15, 2015 4:31 pm 
Offline
Member
Member
User avatar

Joined: Sat Apr 30, 2011 12:50 am
Posts: 308
Nothing beats Visual Studio 2013/2015 for C/C++ code writing, you get completion and many other things.
Of course, it is Windows only, but you could get it on Wine maybe?
If you're a student you could also get the enterprise version.


Top
 Profile  
 
 Post subject: Re: Which IDE to use for (freestanding) C?
PostPosted: Thu Oct 15, 2015 4:36 pm 
Offline
Member
Member

Joined: Tue Nov 08, 2011 11:35 am
Posts: 453
I use Vim for almost everything. It just suits me well (even without plugins it has a lot of useful functions).

But if you have enough resources, QtCreator seems to be a nice IDE: it's possible to enable vim-like key bindings + I sometimes find it good at code-search and navigation (find all places where function is used, switch header/source, go to type/function definition, etc).


Top
 Profile  
 
 Post subject: Re: Which IDE to use for (freestanding) C?
PostPosted: Thu Oct 15, 2015 4:40 pm 
Offline
Member
Member

Joined: Mon Feb 02, 2015 7:11 pm
Posts: 898
Mmm QtCreator looks pretty interesting.

_________________
https://github.com/kiznit/rainbow-os


Top
 Profile  
 
 Post subject: Re: Which IDE to use for (freestanding) C?
PostPosted: Thu Oct 15, 2015 10:31 pm 
Offline
Member
Member
User avatar

Joined: Thu Mar 27, 2014 3:57 am
Posts: 568
Location: Moscow, Russia
I personally use Xcode, it can be easily set up for a freestanding C project, it has got all essential features like autocompletion, go to definition, etc. Hovewer, it's only for OS X.

_________________
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
- Alan Kay


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 73 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group