Page 1 of 1

Should I go for C or C++

Posted: Sat Jul 16, 2005 11:00 pm
by codemastersnake
Hello everybody!

I am presently writing an OS... It's written in C++ with classes... I have faced many problems with C++ and wanted to know whether I should stick to C++ or change to C++....

plz help....

Re: Should I go for C or C++

Posted: Sat Jul 16, 2005 11:00 pm
by carbonBased
There have been a lot of opinions on this expressed on this board over the past month or so. I'd suggest looking throug the archives to get some good ideas of the pros and cons of each language.

I'd also suggest that perhaps you could outline some of the problems you've run into with C++? Several developers here have considered C++ and would probably be interested. As well, many have written full C++ kernels and may be able to help.

Cheers,
Jeff

Re: Should I go for C or C++

Posted: Sat Jul 16, 2005 11:00 pm
by Hery
I think that writting OS in C++ isn't a good idea! Exception: shell. But lot of other things is easier to write in asm.

Re: Should I go for C or C++

Posted: Sat Jul 16, 2005 11:00 pm
by codemastersnake
I get problem when I try to include some func.. for example I had developed stdIO.h with no bios functions and it is running fine alone... but when I try to include some other module like time.h then I get nothing at the out put only cursor pos moves... why is that happening.... can anybody tell me

Re: Should I go for C or C++

Posted: Sat Jul 16, 2005 11:00 pm
by Legend
Some addresses that get miscalcuated then? Some overwriting of memory in your time.h stuff? Sounds more like a generic then a c++ specific problem.