Fabio Dell'Aria schrieb:
Hi to all,
all we know how many new users do not uses lazarus because it create too
BIG compiled files.
We know that:
1)...the additional options are needed to can debug the project;
2)...just do a simple "strip --strip-all filename" reduce drastically
the final size (an empty project go from 12.5Mb to 1.2 Mb).
I think to have found a really simple solution to can continue to debug
our project with a really little size increasing.
Just remove all the debug-info from all the LCL object files to reduce
the final compiled file from 12.5Mb to ONLY 2Mb (on Windows).
We'll can continue to debug our projects but we'll CANNOT debug the LCL
code.
To obtain this little miracle just use the following command (from the
shell):
For Windows:
FOR /R "Your_Lazarus_Folder" %v IN (*.o) DO strip --strip-debug "%~fv"
For Linux:
sudo find /your_lazarus_folder -name *.o -exec strip --strip-debug {} \;
All of the solutions provided here are not that ideal when USING (and
not developing) Lazarus.
In many cases I want to debug MY code - and not the LCL-Code. But
sometimes, I've to search inside the LCL as well. So I would appreciate
to switch to either debug the LCL or link an LCL without debug-symbols.
regards
Lukas
--
----------------------------
software security networks
Lukas Gradl <lazarus#ssn.at>
Eduard-Bodem-Gasse 9
A - 6020 Innsbruck
Tel: +43-720-300168-0
Fax: +43-512-341033-19
----------------------------
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives