On Tue, 15 Jan 2008 17:59:20 +0100
Lukas Gradl <[EMAIL PROTECTED]> wrote:
>
>
> 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.
That is about 'conditional compiler options'.
Many people want a release/debug mode.
You want to fine control release/debug flag for every package or at
least a set of packages (LCL+FCL+RTL). Please make a proposal on
http://wiki.lazarus.freepascal.org/Conditional_Compiler_Options
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives