1)How can I build Lazarus from command promt
to make all ints units Smart Linkable? Also, is it possible to add
somewhere thouse optimization switches: -S2cgi -CX -Og3ru -gl -XX
in fpc.cfg
Darek
Thank you, Darek!
I try to add my switches. This is the result:
Free Pascal
May be it is impossible to compilate Lazarus wit Smart Linking?
No, it is not. Acctually I never tryed to recompile lazarus IDE with
smart linking, but the LCL, the code that is acctually put inside your
program surely can be compiled with smart linking.
I bet this will bring the exe size
Alex Smirnov wrote:
*Some questions following this disscussion:*
- Are Link Smart and Smart Linkable really helpfull to get
executable file smaller in size?
- Can I compile and link all UNITS to be Smart linkable - is it
possible and will it also make executable files smaller?
The best
- Why I must use strip to cut off debug information both in Linux and
in Windows, even if I set Strip Symbols From Executable(-Xx) to True
in Compiler options?
Because -Xx is buggy? Just tested on Lazarus 0.9.10 on Linux and it did
not strip my executable. Is there already a bug report
For Linux it should work. For Win32 it is a known issue that ld is buggy.
Sending a bug report to fpc doesn't help, we can't solve it. Better report
it to the GNU binutils.
How about the internal linker for FPC. Is there any outlook on when this
could be implemented, or are there no concrete
For Linux it should work. For Win32 it is a known issue that ld is
buggy.
Sending a bug report to fpc doesn't help, we can't solve it. Better
report
it to the GNU binutils.
How about the internal linker for FPC. Is there any outlook on when this
could be implemented, or are there no
Georg Vollnhals wrote:
Hi Alexey
and thank you *very much* for your prompt help.
Using strip reduced the filesize from 9.17 MB to 1.64 MB !!!
(100%-ca.18%).
Now the result can be shared and I am really fully satisfied with
Lazarus :-) , all coders and
people helping the core-stuff do a
Felipe Monteiro de Carvalho schrieb:
You should also use upx. It is a very good exe compressor. It includes
almost no overhead for decompressing the exe before execution. I think
it cames with Lazarus, but you may get it from
http://upx.sourceforge.net/ anyway.
Thank you, Felipe, I'll try
Bogusław Brandys wrote:
Under Windows there are some aspects to consider:
Do not use UPX if computer has low memory (program uses twice memory
when UPX-ed) or program is using some DLL files which are also used by
other programs - it can't be shared among them.
From UPX website:
Overview