<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Le 08/01/2024 à 13:51, Peter B via
fpc-pascal a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:400613f2-2c0d-49e1-9232-a515ab91d930@pblackman.plus.com">
<blockquote type="cite" style="color: #007cff;"> or if not, is
there another way to
<br>
turn it on in the textmode IDE?
<br>
</blockquote>
No idea. Its easy enough if you compile from the command line.
<br>
fpc -Os -XX hello.pas
<br>
<br>
If stripping is not on by default, also use -Xs
</blockquote>
<p>I guess that in the textmode IDE you just have to go
Options/Compiler <br>
and in the bottom in "Additional compiler args"<br>
you just have to add -Os -XX - Xs<br>
</p>
<p>-Os : Optimize for size rather than speed<br>
-Xs : Strip all symbols from executable<br>
-XX : Try to smartlink units (defines FPC_LINK_SMART)<br>
</p>
</body>
</html>