Page 1 of 1

Which One?

Posted: Wed Aug 28, 2013 10:20 am
by Jprogrammer
Which language is better for OS development? C or C++?

Re: Which One?

Posted: Wed Aug 28, 2013 11:30 am
by shikhin
Hi,
Jprogrammer wrote:Which language is better for OS development? C or C++?
The one you're more comfortable with!

Anyway, this has been discussed upon loads of times. You should probably just search the forums, and unless you've something unique to say on the topic, not make a new thread.

Regards,
Shikhin

Re: Which One?

Posted: Wed Aug 28, 2013 11:56 am
by arseniuss
Actually I would say that C is easier and good. But if you looking at your kernel/OS from object-oriented perspective then I would recommend to use C++. Anyway there will much code written in C at start.

As I've seen C++ code is little bit harder to debug. However there is no better language to use. It's up to programmer.

Re: Which One?

Posted: Wed Aug 28, 2013 2:46 pm
by Jezze
There is actually no reason at all to use c++. All it ads is syntatctic sugar but without adding anything bemeficial for you as a programmer.

Re: Which One?

Posted: Wed Aug 28, 2013 2:59 pm
by dozniak
Jezze wrote:There is actually no reason at all to use c++. All it ads is syntatctic sugar but without adding anything bemeficial for you as a programmer.
That is of course not true, but lets not reiterate that topic again.

(At least one thing that C++ provides, but C principally can not is RAII).

Re: Which One?

Posted: Wed Aug 28, 2013 3:57 pm
by Jezze
Let's just agree it's a complex topic.

Re: Which One?

Posted: Wed Aug 28, 2013 8:47 pm
by bluemoon
Actually, I used not one, but both. Why not get both while they are free? :mrgreen:

Re: Which One?

Posted: Thu Aug 29, 2013 2:27 am
by sortie
This topic gets more fun if you consider that the C and C++ languages have a large set of programs in common.