[Lazarus] Size of program executable very big...

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Feb 18 12:08:08 CET 2011


 


Bo Berglund <bo.berglund at gmail.com> hat am 18. Februar 2011 um 11:43
geschrieben:

>[...]
> Couldn't Lazarus be "smart" about the code generation as follows:
> 1) When one clicks the run button (green arrow) lazarus creates the
> exe file with embedded debug information such that breakpoints etc
> work for debugging.
>
> 2) When one uses the build function Lazarus does NOT use the compile
> option to enter debug data into the exe, thus creating the slimmer
> file.
>
> With this one would get the best of both worlds, right? 
No, that would be a bug. "Compile" let the compiler compile all new, "Build"
recompiles all units of the project.
 
You can define a second build mode "release" and enable whatever optimization
you think is appropriate for your customers. 
 

Mattias 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110218/68873f5a/attachment-0003.html>


More information about the Lazarus mailing list