Page 1 of 1

os with c++ How?????

Posted: Tue Apr 16, 2002 11:00 pm
by blito
thinking on the implementation laguaje for
my os.
can i write it in c++? i think this is a
good oportunity to learn some c++.
what libs i'll have to port?
heared that c++ is not good for os coding, why?
i´m working with dgjp and nasm.
thanks

RE:os with c++ How?????

Posted: Wed Apr 17, 2002 11:00 pm
by Guest
Yes, you can write your OS in C++ although there
will be many problems along the way.

Most 'standard' operations aren't, such as new()
delete(), and some other oft-used things of that
nature.

If you wish to use them you'll have to code them
all and they're mostly OS specific ( they depend
on your memory allocation techniques ).

I'd advise you to know C++ like the back of your
hand before you do something like that, otherwise
you'll get bogged down with virtual functions
within classes that will create unecessary
overhead.

C++ has the potential to be REALLY fast ( as
fast as C ) if done right, but you have to be very
careful :)

>On 2002-04-17 14:38:39, blito wrote:
>thinking on the implementation laguaje for
>my os.
>can i write it in c++? i think this is a
>good oportunity to learn some c++.
>what libs i'll have to port?
>heared that c++ is not good for os coding, why?
>i´m working with dgjp and nasm.
>thanks