

- COMPILE C PROGRAM IN DOS NUMBER CODE
- COMPILE C PROGRAM IN DOS NUMBER LICENSE
- COMPILE C PROGRAM IN DOS NUMBER FREE
- COMPILE C PROGRAM IN DOS NUMBER WINDOWS
COMPILE C PROGRAM IN DOS NUMBER WINDOWS
(However, two of the three major formats UPX doesn't compress are OS/2 and Windows 3.1 executables. It's capable of compressing EXE, COM, and SYS files and using this sort of executable compression was commonplace back in the day. (Don't forget to run it with -8086 if you're targeting something older than a 386.)
COMPILE C PROGRAM IN DOS NUMBER FREE
You may also want to run the UPX compressor on the EXE files you build so you'll have more free space on any floppy images you make. Here are a few other free C compilers for DOS, though they lack the huge ecosystems DJGPP and OpenWatcom have: If you want something that'll let you run the IDE and compiler on ancient hardware, the Pacific C compiler and IDE list a 286 CPU as their minimum requirement but can also be run in DOSEMU for easy integration into Linux-based build automation. (Though I don't know how complete its support is for the various memory models and calling conventions used in the 16-bit x86 ecosystem.) no DJGPP) and you want something with a more modern optimizer than the one in Open Watcom C/C++, there's a fork of GCC named GCC IA16 that you can try. If your project must run in real mode (ie. Lots of other formats you probably don't care about.Windows 3.1 EXEs (with or without the Win386 extender).

COMPILE C PROGRAM IN DOS NUMBER CODE
In fact, DOS/4GW's creator was trying to dig up the source code for a newer version of DOS/4GW to contribute to Open Watcom when he passed away. (When you see a game like DOOM saying "DOS/4GW Protected Mode Runtime" when it starts, that means that it was built using Watcom C/C++, because DOS/4GW is the special Watcom bundle version of DOS/4G.)

COMPILE C PROGRAM IN DOS NUMBER LICENSE
OpenWatcom still includes the free license to use DOS/4GW that made it so popular back in the day. No matter what you're trying to do, OpenWatcom (source) is likely to meet your needs. (Including a Turbo Vision port with an installation HOWTO) It's a protected-mode DOS port of GCC and probably has the largest selection of libraries and guides available of any of the open-source options. Here are a bunch of details others have missed:
