Completely Remove C Runtime with DMD for win32

kinke noone at nowhere.com
Sun Jul 15 21:04:43 UTC 2018


On Sunday, 15 July 2018 at 20:29:29 UTC, tcb wrote:
> Is it possible to completely remove the C runtime on windows, 
> and if so how?

This works for me:

extern(C) int mainCRTStartup() { return 0; }

dmd -m32mscoff -betterC -L/subsystem:CONSOLE main.d

=> 1.5 kB .exe.


More information about the Digitalmars-d mailing list