4 ms·
It uses DJGPP, so it makes protected mode EXEs.
by LocalH 4y ago
It uses DJGPP, so it makes protected mode EXEs.
- zozbot234 4y agoLLVM devs are apparently still working on adding proper i386 support https://github.com/llvm/llvm-project/issues/58470 https://github.com/llvm/llvm-project/issues/58470 but if that were to be addressed, we might even be able to use clang or rustc to build proper DPMI-based code for DOS. That would then leave 8086 real mode and 80286 protected mode as the next steps - admittedly quite a bit harder, given the need to deal with the complexity of segmented memory and the related issue of "code models".
- andrewf 4y agoSome people have been maintaining a GCC with 16-bit DOS support for a few years now. It started as near pointer only (so only tiny/small memory models) but now has far pointers and some memory model support. I haven't really used it in anger. https://gitlab.com/tkchia/build-ia16/-/releases https://gitlab.com/tkchia/build-ia16/-/releases If you want C++ you have to build a cross-compiler from source on a modern platform; they supply DJGPP binaries that'll compile C to 16-bit.