Page 1 of 1
Turbo C or DJGPP???
Posted: Thu Sep 05, 2002 2:37 pm
by Ozguxxx
Hi everybody, I am currently trying to learn some os related programming stuff with Turbo C and NASM. Although I think I got inline assemblying, everybody is writing the os code by DJGPP.(right) Also I am trying to use JLOC as a linker. Do these programs (Especially Turbo C and DJGPP) really have different features by means of programming for OS development? Thanx...
Re:Turbo C or DJGPP???
Posted: Thu Sep 05, 2002 2:55 pm
by Tom
Well, DJGPP has stuff that's good for OS dev. When I first started to make my OS, I wanted to make it with TC++ 3.0. But, Borland doesn't let you make anything with TC or TC++ that's not for personal use. So I thought I should use GCC( the DJGPP that runs on linux, well, DGJPP is the (G)NU (C) (C)ompiler is the version for win32 ).
DJGPP uses Protected Mode, that is, a CPU mode that is
32-bit, and you can't use int instructions ( interrups, well you can use them, in a complicated v86 mode ).
I think using GCC on Linux is best for OS dev, but DJGPP is ok too.
DJGPP is alot better for OS dev than TC.
I hope that helps you,