[Lazarus] RE : Compiled file size (again)

Ludo Brands ludo.brands at free.fr
Thu Dec 15 08:58:11 CET 2011


> compile with debug info, and dump all the symbols with 
> objdump (part of 
> fpc). to estimate the size, sort them by address and get the 
> diff to the 
> next symbol.
> 

Or compile with -Xm. This generates a big .map file that explains what
modules are linked, symbols referenced in each module, code removed by the
smart linking and finally the memory map of the executable with the position
and size of every module.
Don't know if this is working and with the same verbosity on all platforms.

Ludo





More information about the Lazarus mailing list