View mode: basic / threaded / horizontal-split · Log in · Help
December 27, 2011
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.

http://dump.thecybershadow.net/24ee94c80426eebf0e6a23693de041ae/dos-druntime.diff
http://dump.thecybershadow.net/1f9de3d4813a92307cb1743334159bd8/dos-phobos.diff

 [1]: http://stackoverflow.com/q/8628733/21501
Top | Discussion index | About this forum | D home