[Lazarus] RE : Size of binaries etc.

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Fri Mar 23 13:26:25 CET 2012


Ludo Brands wrote:
>>> Cody values are before smart linking.
>>>
>>> I heard there is a compiler flag that shows information after smart 
>>> linking.
>> If anybody has any thoughts as to how to enable this I'd be 
>> interested 
>> to know. Otherwise I'll just have to live with the issue, 
>> noting that in 
>> general it's a one-time overhead.
>>
> 
> Adding -Xm to the compiler options will create a link map. This contains a
> long list of what references what and the functions kept or removed by the
> linker.

Thanks Ludo, I mis-read that to be a mode that Cody could be built to 
provide additional info.

I was wondering about a conventional (readable) map file... adding -Xm 
shows that a lot of e.g. comctrls is present in the binary from a null 
project even after smartlinking, so as somebody else has said this looks 
like a unix problem.

At least that leaves me in a position of being able to say that it's an 
ld issue, rather than something implicit in Lazarus.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]




More information about the Lazarus mailing list