[fpc-pascal] Default compiler options for shootout using fpc 2.2.0

Vincent Snijders vsnijders at vodafonevast.nl
Sun Oct 5 10:23:30 CEST 2008


What should be the default compiler options for the shootout benchmarks?

The used compiler is fpc 2.2.0. The benchmarks are run on a Intel Q6600 
quad-core, either with 32 bits or 64 bits Ubuntu.

There is some controversion about it, see 
https://alioth.debian.org/tracker/index.php?func=detail&aid=311109&group_id=30402&atid=411002

There are two proposals:
-O3oregvar -XX -Xs
and
-XXs -Oppentiumm -Cppentiumm -O3

Does -O3 enable regvar optimization on i386 and x86_64?

If not, why not? Does it produce wrong code in certain circumstances?

Vincent



More information about the fpc-pascal mailing list