Strip Unused Symbols Ldc + Windows

SrMordred patric.dexheimer at gmail.com
Sat Mar 21 18:58:21 UTC 2020


On Saturday, 21 March 2020 at 18:01:55 UTC, kinke wrote:
> On Saturday, 21 March 2020 at 17:33:21 UTC, SrMordred wrote:
>> Hmm, ok, my question is in fact relate to this kind of thing:
>> https://godbolt.org/z/NGjyyx
>>
>> Why int example.add(int, int): its still on the binary when 
>> all u need is alredy optimized to
>> main:
>>  mov     eax, 30
>>  ret
>>
>> ?
>
> You're inspecting an object file, before any linker and symbol 
> stripping is involved.

Oh, i thought that the symbol stripping was before linker!, my 
bad, thanks!


More information about the Digitalmars-d-learn mailing list