Turbo C or DJGPP???

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Ozguxxx

Turbo C or DJGPP???

Post 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...
Tom

Re:Turbo C or DJGPP???

Post 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,
Post Reply