Question about LDC and --gc-sections
H. S. Teoh
hsteoh at quickfur.ath.cx
Fri Oct 26 16:07:38 UTC 2018
On Thursday, 25 October 2018 at 18:09:35 UTC, Jonathan Marler
wrote:
[...]
> [...] As an experiment, you could write a dummy main function
> that calls all the entry points you need to expose and then
> link it as an executable with --gc-sections and see how many
> symbols you are left with. I'm very curious about this one so
> hopefully someone knows the answer to this.
I did a quick test, and here are the results:
.so file size with (and without) --gc-sections: 6.1MB
Executable size with --gc-sections: 8.75KB
--T
More information about the Digitalmars-d
mailing list