Page 1 of 1

watcom adds dos functions to com excecutables.

Posted: Fri Nov 26, 2010 3:29 am
by scsi
I'm developping a 16 bit kernel and using watcom c/c++ compiler.But when i try to build .com executable and look the source of com file with ndisasm i see some int 21h interrupts which is used by dos.Anybody knows how to remove this dos functions. I just want to have simple flat binary code.

Re: watcom adds dos functions to com excecutables.

Posted: Fri Nov 26, 2010 4:14 am
by jal
scsi wrote:I'm developping a 16 bit kernel and using watcom c/c++ compiler.But when i try to build .com executable and look the source of com file with ndisasm i see some int 21h interrupts which is used by dos.Anybody knows how to remove this dos functions. I just want to have simple flat binary code.
If you create a DOS executable (which is what a COM file is), you get DOS functions. Also, you see that link up top, called "The OSDev.org Wiki - Got a question? Search this first!"? You didn't search, did you? Because there this article called Watcom that answers all of your questions about using Watcom C for OS development.


JAL

Re: watcom adds dos functions to com excecutables.

Posted: Sat Nov 27, 2010 8:45 am
by scsi
thanks for the reply.