On 24/01/2021 08:54, Adam Nielsen via Freedos-user wrote:
Hi all,

Can anyone recommend a good C compiler for DOS?

Turbo C 2.01 (gratis, very good software) and OpenWatcom (open-source, tend to produce heavier binaries than OW, but comes with a more complete libc).

  * 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.

Use DOSEMU. You get a little "DOS in a window" that sees your native Linux files. No need to copy source files back and forth - write them with your usual Linux IDE/notepad, compile and test in the DOSEMU window.

Do they all target protected mode architectures
now or do they still support 8086-compatible real mode?

Both TC and OW produce 8086 code (OW needs the extra -0 argument for that).

Mateusz


_______________________________________________
Freedos-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to