Modern C++ Lamentations

Jon Degenhardt jond at noreply.com
Mon Dec 31 04:37:39 UTC 2018


On Sunday, 30 December 2018 at 14:27:56 UTC, H. S. Teoh wrote:
> Recently I noticed that LDC now compiles every function into 
> their own section and runs LTO, including GC of unreferenced 
> sections, by default. As a result, executable sizes are back 
> down to where equivalent C/C++ code would be, as opposed to 
> being a MB or so larger when compiled with DMD. It more-or-less 
> nullifies most of the ill-effects of template bloat.

At DConf I showed executable size reductions on my apps resulting 
from applying LDC's LTO. They are on slide 14 here: 
https://github.com/eBay/tsv-utils/blob/master/docs/dconf2018.pdf. 
I didn't have a basis for comparison to equivalent C/C++ though.

--Jon




More information about the Digitalmars-d mailing list