Pay as you go is really going to make a difference

kinke noone at
Thu Jan 23 22:48:21 UTC 2020

On Thursday, 23 January 2020 at 10:01:07 UTC, Laurent Tréguier 
> I don't understand these numbers. When compiling on Linux 
> x86_64 myself with DMD and LDC, I get a 900k executable and a 
> 692k executable, respectively. I also get different results 
> with GCC/Glibc (dynamic: 7.7k, static: 761k), or with the 
> assembly itself (760 bytes).
> It's like all the sizes in the blog post are bigger somehow. 
> How am I getting results so wildly different from the post ? 
> I'm a bit puzzled

I cannot reproduce them either. My sizes with official LDC 
v1.18.0 (same version as used by the author), on Ubuntu 18.04 x64 
(author: Arch):

Phobos writeln variant:
ldc2 -O:         990K (in the bog: 10305 KiB)
ldc2 -O -static: 3.0M (incl. glibc)

C puts variant:
ldc2 -O:         478K
ldc2 -O -static: 2.3M

More information about the Digitalmars-d mailing list