<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
<title></title>
</head>
<body>
<p style="margin: 0px;"><span> </span></p>
<p style="margin: 0px;"></p>
<div style="margin: 5px 0px 5px 0px;">
Bo Berglund <bo.berglund@gmail.com> hat am 18. Februar 2011 um 11:43 geschrieben:<br/>
<br/>
>[...]<br/>
> Couldn't Lazarus be "smart" about the code generation as follows:<br/>
> 1) When one clicks the run button (green arrow) lazarus creates the<br/>
> exe file with embedded debug information such that breakpoints etc<br/>
> work for debugging.<br/>
><br/>
> 2) When one uses the build function Lazarus does NOT use the compile<br/>
> option to enter debug data into the exe, thus creating the slimmer<br/>
> file.<br/>
><br/>
> With this one would get the best of both worlds, right?
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">No, that would be a bug. "Compile" let the compiler compile all new, "Build" recompiles all units of the project.</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">You can define a second build mode "release" and enable whatever optimization you think is appropriate for your customers. </p>
<p style="margin: 0px;"> </p>
<div style="margin: 5px 0px 5px 0px;">
Mattias
</div>
<p style="margin: 0px;"> </p>
</body>
</html>