Page 1 of 1

WATCOM compiler

Posted: Fri Nov 19, 2004 12:00 am
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!