Hi!
Try to go to c:\lazarus\pp\bin\i386-win32\. There is a file -  strip.exe.  Simply type strip <path to your project *.exe file> and press Enter. You file will become smoller in size for nearly 30%. The fact is that Lazarus do not strip symbols from executable while linking, even if you place a appropriate mark to "Complier options for porject" -> Linking page (-Xs). Both in Windows and in Linux.

So now your file become smoller. But it will be in 1.3 - 1.5 times bigger than in Delphi. I am really do not know why! When I work with Sibyl - Delphi-like RAD + Pascal compiler for Win32 and OS/2 - it was working really good and can produce Win32 *.EXE files SMALLER in size than in Delphi for the same code.

Regards. Alexey.

Reply via email to