[fpc-devel] Delphi smart-linking perspective ( Language change and implementation ... )

Jonas Maebe jonas.maebe at elis.ugent.be
Sun May 31 11:58:33 CEST 2009


On 31 May 2009, at 11:42, Paul Ishenin wrote:

> Jonas Maebe wrote:
>> Still quite minimal results. But unless I'm misremembering, it  
>> seems that the size of the application itself has grown a lot. An  
>> empty form with a button now results in an application of 1.8MB  
>> (Carbon/i386). I thought it was closer to 1.1MB the last time that  
>> I tried this (October last year).
> Maybe it was less in size because it did not contain application  
> icon? Icon is rather big resource.

Removing the icon removes only about 100KB. Also, why is it included  
in the program binary itself? At least on Mac OS X the system never  
looks there for an icon, afaik.

>> Here's where the size comes from (with smart linking and stripping,  
>> no debug information):
>>
>> __TEXT  __DATA  __OBJC  others  total
>> 1171456    655360    0    44932    1871748
> Maybe for you as compiler developer this numbers are meanful but it  
> is not so for me. How can we interprete them?

__TEXT = code
__DATA = data
(others = various kinds of required information for the program loader  
and dynamic linker)


Jonas



More information about the fpc-devel mailing list