watcom adds dos functions to com excecutables.
watcom adds dos functions to com excecutables.
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.
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.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.
JAL
Re: watcom adds dos functions to com excecutables.
thanks for the reply.