www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - D on MS-DOS

For some benchmarking research[1], 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.


  [1]: http://stackoverflow.com/q/8628733/21501
Dec 26 2011