LDC -noruntime

bearophile bearophileHUGS at lycos.com
Fri Jul 6 02:37:43 PDT 2012


BLM768:

> I knew that stuff like "new" wouldn't work without the runtime, 
> but code that only does a few struct member accesses and a 
> pointer cast shouldn't require runtime functions; that's all 
> elementary C stuff.

D isn't C, it was not designed for your very uncommon purpose, it 
creates and manages things like moduleinfos, typeinfos, plus it 
initializes the GC even if you don't use it later. And currently 
in some cases D uses heap allocations even when you don't think 
they are needed, like when you define an array literal. Probably 
there are ways to disable each one of those (LDC has ways to 
disable typeinofos, and maybe even moduleinfos), so you have to 
find them all and disable/break/stub them.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list