4 ms·
A different option is to grab a standard ELF toolchain for i386, like GCC + Binutils, and then convert your ELF binary into a format that can run on DOS. Which
by dietrichepp 3y ago
A different option is to grab a standard ELF toolchain for i386, like GCC + Binutils, and then convert your ELF binary into a format that can run on DOS.
Which is what I did: https://github.com/depp/elf2dos.git https://github.com/depp/elf2dos.git
This is not really a polished, supported product, just a program I wrote to make DOS programs on Linux or Mac.
- mike_hock 3y ago> GCC will still emit calls to memcpy, memmove, memset, and memcmp, so you may need to define these. So you write a memcpy implementation, GCC figures this just copies memory and emits a call to memcpy!