[fpc-pascal] optimised compiler options for "release" version
Graeme Geldenhuys
graemeg at opensoft.homeip.net
Mon Jun 8 09:24:32 CEST 2009
Hi,
I saw the following options recommended by the ExtPascal project for a
final "release" build of ones project. Does this really make a
difference in speed/performance and or executable size? How safe is it
to deploy such an executable to a wide variety of computers out there.
-O2pPENTIUM4 -CXpPENTIUM4 -XXsi -CfSSE
While developing my software I enable the following, and simply though
that for the final "release" version I'll remove the 'heaptrc' support
(-gl & -gh) and 'strip' the executable at the end.
-CX -Cr -O1 -gl -gh -XX
What is recommended? Stay with the more conservative options of FPC (-O2
-CX -XX) or the more processor specific optimisations. Please note, that
I do not know what exactly our clients run, processor wise (AMD or
Intel, singlecore or multi-core, etc...) I would hope everybody at least
runs a P4 and up on todays computers.
Regards,
- Graeme -
More information about the fpc-pascal
mailing list