Re: [lazarus] Re: Big size of W32 *.exe files

2005-11-13 Thread Alex Smirnov
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

Re: [lazarus] Re: Big size of W32 *.exe files

2005-11-13 Thread Peter Vreman
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

[lazarus] Re: Big size of W32 *.exe files

2005-11-03 Thread Felipe Monteiro de Carvalho
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

Re: [lazarus] Re: Big size of W32 *.exe files

2005-11-03 Thread Peter Vreman
- 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

Re: [lazarus] Re: Big size of W32 *.exe files

2005-11-03 Thread dhkblaszyk
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

Re: [lazarus] Re: Big size of W32 *.exe files

2005-11-03 Thread Peter Vreman
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

[lazarus] Re: Big size of W32 *.exe files

2005-10-29 Thread Felipe Monteiro de Carvalho
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

Re: [lazarus] Re: Big size of W32 *.exe files

2005-10-29 Thread Georg Vollnhals
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

[lazarus] Re: Big size of W32 *.exe files

2005-10-29 Thread Felipe Monteiro de Carvalho
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