Got some more information here : http://wiki.osdev.org/D_Bare_Bones Any way to do this with dmd? When compiling with -debuglib=none and -defaultlib=none I still get a 31 kb executable so druntime still gets linked in.