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

Marco van de Voort marcov at stack.nl
Sun May 31 11:54:17 CEST 2009


In our previous episode, Paul Ishenin said:
> 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.
> >
> > 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 = generated code
data = initialized data.
I assume "others" are the resources as OS X sees them (which might not
necessarily be equal to Lazarus resources)

I did a quick test, and for windows, an application became slightly less
than 200k fatter compared to january 2008. (from 1250 to 1424k or so)

So if Jonas memory is correct, it might have a significant OS X specific
factor in it.



More information about the fpc-devel mailing list