Object size?
Andy Valencia
dont at spam.me
Wed Mar 13 17:40:52 UTC 2024
On Saturday, 2 March 2024 at 04:33:02 UTC, Andy Valencia wrote:
> ...But the executable size is enormous. For 405 statements, it
> has a text size of 712k bytes. Whoof. Is this normal? I'm
> using ldc2 version 1.30.0.
I've played with this some more; this code:
import std.stdio : writefln;
void
main(in string[] argv)
{
writefln("%s: %d thingies\n", argv[0], 123);
}
results in 252k of text size in the executable. It seems like
there's some sort of combinatoric explosion going on behind the
scenes?
Andy
More information about the digitalmars-d-ldc
mailing list