[Lazarus] RE : Size of binaries etc.

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Sat Mar 24 10:51:17 CET 2012


Mark Morgan Lloyd wrote:
> 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.

That's wrong: the LCL etc. is being built without smartlinking.

-- 
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