On processors for D ~ decoupling
Dave
Dave_member at pathlink.com
Sat Apr 8 07:10:12 PDT 2006
In article <e17um0$1hts$1 at digitaldaemon.com>, Walter Bright says...
>
>Thomas Kuehne wrote:
>> Walter Bright schrieb am 2006-04-08:
>>> Right, I typo'd it. However, --gc-sections doesn't work on my system -
>>> everything is still linked in. But it does on yours - not all of
>>> std.string is linked in?
>>
>> Correct
>
>This is good news. The documentation on --gc-sections is pretty sparse,
>I wasn't sure it was intended to do that, and it does nothing on my system.
>
>> $ ld --version
>> GNU ld version 2.16.1
>
>I'm using ld 2.13. The release notes say that --gc-sections works for
>it, but I guess it doesn't actually :-(. Anyhow, it is good news that it
>is working on your system. I'll modify dmd to pass the --gc-sections
>command through to the linker, and I'll not worry about older ld's
>ignoring the switch.
>
>Thanks for helping out with this.
Might want to take a look at the gcc '-s' switch as well. Man page (under gcc
linking options):
-s Remove all symbol table and relocation information from the executable.
It dramatically reduces the size of the executables on my system. Don't have
much experience with it yet though.
- Dave
More information about the Digitalmars-d-announce
mailing list