"LDC has the --gc-sections flag", etc.
Iain Buclaw via Digitalmars-d
digitalmars-d at puremagic.com
Tue Sep 2 01:23:28 PDT 2014
On 2 September 2014 01:03, David Nadlinger via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
> On Monday, 1 September 2014 at 22:17:13 UTC, Abe wrote:
>>
>> Do you guys — or anybody else — know what the situation is with GDC? Does
>> it strip out unneeded sections/symbols/both, or is it just dumping
>> everything into the executable like DMD-on-Mac-OS-X seems to do?
>
>
> GDC does not strip unneeded stuff by default on any OS, and generates by far
> the biggest executables in my experience (though some of it is due to
> druntime/Phobos debug info which you can manually strip out afterwards).
>
make install-strip !
Though I'd imagine that libgcc is likely one of the main contributors
to the notably stouter application size vs dmd/ldc. Someone should
actually study where the symbols come from.
Iain.
More information about the Digitalmars-d
mailing list