<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">BogDan <<a href="mailto:bog_dan_ro@yahoo.com">bog_dan_ro@yahoo.com</a>> schrieb am Sa., 12. Feb. 2022, 13:23:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
<br>
On Saturday, February 12, 2022, 11:23:40 AM GMT+2, Sven Barth <<a href="mailto:pascaldragon@googlemail.com" target="_blank" rel="noreferrer">pascaldragon@googlemail.com</a>> wrote: <br>
<br>
<br>
BogDan via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org" target="_blank" rel="noreferrer">fpc-devel@lists.freepascal.org</a>> schrieb am Sa., 12. Feb. 2022, 10:18:<br>
> Also, everything that is not used by the application it should be stripped by the linker (if it has one). Again I'd like to highlight that I'm new to fpc, last time I used pascal it was over 20 years ago :) .<br>
<br>
The linker can only remove stuff that isn't used. And due to the cross platform nature of FPC manager approaches are used to make the easier maintainable which also results in a negative impact there. <br>
<br>
But anyway: did you build FPC and the RTL with the -CX option and compile your application with -XX? <br>
<br>
Regards, <br>
Sven <br>
> <br>
<br>
<br>
I'm compiling my app with -CX -XX flags.<br>
I just tried to buld fpc and RTL with -CX but it fails with the followings:<br>
...<br>
make[3]: Entering directory '/home/taipan/work/z80/fpc/rtl/zxspectrum'<br>
/bin/mkdir -p /home/taipan/work/z80/fpc/rtl/units/z80-zxspectrum<br>
/home/taipan/work/z80/fpc/compiler/ppcrossz80 -Tzxspectrum -Pz80 -Ur -Xs -O2 -n -Fi../inc -Fi../z80<br>
-FE. -FU/home/taipan/work/z80/fpc/rtl/units/z80-zxspectrum -Fl/usr/lib/gcc/x86_64-linux-gnu/11 -dz<br>
80 -dRELEASE -O-1 -Us -Sg system.pp<br>
genmath.inc(366,16) Fatal: Code segment too large<br>
Fatal: Compilation aborted<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I don't see -CX listed there. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>