darekM wrote:
Graeme Geldenhuys napisał(a):
I
read this exact question in the FPC's FAQ and tried all the compiler
options they mentioned. The executable ends up between 6.1Mb and 9Mb
in size. And that is for a Win32 Gui "Hello World" app compiled under
Lazarus 0.9.10.
I also recompiled the Lazarus IDE and it went from 7Mb to 22.9Mb. What
am I doing wrong?
Everything is OK, but you must strip executables,
thaw was discussed several times
cited form mail: Big size of W32 *.exe files
>>>>>>>>>>>
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.
<<<<<<<<<<<<<<<
Darek
Regards,
- Graeme -
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED]
with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
I think someone who can edit the FAQ on the lazarus website should add
this to the FAQ, just to avoid these questions.
Thanks.
Jani M.
|
- Re: [lazarus] Why are the generated binaries so big? Jani Mátyás
-