https://digitalmars.com/ctg/sc.html
- Download and install Digital Mars C++ compiler from https://www.digitalmars.com/download/freecompiler.html
- Download and install DMD 2.074.1 from http://downloads.dlang.org/releases/2017/
- In the DMD installation, edit the file
src\druntime\importcore\stdc\stdio.dand replaceshared stdout = &_iob[1];withenum stdout = &_iob[1];. - Change directory to
dm\src\dmc - Make sure the
dm\bin\make.exeprogram is on yourPATH. - Execute the commands:
make CC=dmc cleanmake CC=dmc scppnYou might need to edit themakefileto set the path to your DMD installation.
Note that DMC runs on Win32, and hasn't been ported to other platforms. It can generate code for Win32, 16 bit DOS, 16 and 32 bit Windows, 286 DOS extenders, and 386 DOS extenders.