Hi all,

Can anyone recommend a good C compiler for DOS?

I thought there was only DJGPP and had issues with it when I last tried
years ago (CWSDPMI), but looking at the FreeDOS build process it seems
there are quite a number of workable C compilers for DOS now - so much
so I am not sure which one to use!

 * I would like to be able to produce a native DOS real-mode .exe file
   that will run in an emulator like DOSBox and on a real 8086 PC
   running DOS (i.e. without protected mode or extended memory).  It
   looks like there is an "ia16" port of GCC but this seems to produce
   ELF files rather than .exe?

 * I would like to be able to cross-compile from a Linux machine, but
   without having to install a complex cross-compilation environment -
   meaning the two options I can think of are running a Linux platform
   cross-compiler from within a Docker container, or running a native
   DOS compiler from within a virtual environment like QEMU.  It looks
   like OpenWatcom might work for both these use cases?

 * I would like to be able to automate the build process as much as
   possible, avoiding complex install requirements as are often the
   case with cross compilers.  This means automatically downloading the
   compiler would be great, so it knocks out something like Borland
   Turbo C which although free, doesn't allow redistribution.  So a
   compiler with a more open licence would be better.

 * Since I only want to compile via a scripted process, any sort of UI,
   debugger, etc. is not required.

Is anyone familiar enough with what's out there to advise which
compilers meet these requirements?  Are any compilers more actively
developed than others?  Do they all target protected mode architectures
now or do they still support 8086-compatible real mode?

Many thanks,
Adam.


_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to