|Posted by Vladimir Panteleev||PermalinkReply|
For some benchmarking research, I wanted to try to run a D program on MS-DOS. It's actually pretty easy, thanks to the HX-DOS extender. HX-DOS implements a good part of the Win32 API, and even supports GDI and OpenGL programs.
I needed to make a few changes to Phobos and Druntime to stub out features requiring APIs not implemented by HX-DOS. My patches are below; they probably break threading support and certainly break command-line parsing, but that hasn't affected my simple program.