WATCOM compiler

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
pepito
Posts: 23
Joined: Thu Oct 21, 2004 11:00 pm
Location: México D.F.

WATCOM compiler

Post by pepito »

Hello:

I am migrating my OS code from ASM to C. In the original code I hook interrupt gates, trap gates or call gates with ASM routines and use IRETD or RETF instructions to return from it. All works very good!

But I can't do it using DJGPP compiler. Seems that the INTEL processors are designed to work only with a C compiler that support segmentation. Is this true? Am I tryinig to do the job with the wrong tool?

I read that the WATCOM compiler support segmentation, but:

Can it be used to write an OS kernel?
Someone are using it now?
Is it better than GCC/DJGPP?
Is it free?

Thank you!
Pepito :)
Post Reply