This demo shows how to cross-compile a 32-bit DOS program.
-
C build tools for ELF binaries, including a C compiler, assembler, linker, and Make. Tested with GNU ld and GCC 8.3. Clang should work, but the build scripts may require some modification.
-
Go 1.11 or higher to build Elf2Dos (modules support required).
-
DOS/32 Advanced: Copy
sb.exe
anddos32a.exe
to this directory.
To build hello.exe
,
make
To run hello.exe
inside DOSBox,
make run