[fpc-devel] -Or optimization flag

Seth Grover sethdgrover at gmail.com
Mon Apr 5 20:31:41 CEST 2010


http://www.freepascal.org/docs-html/user/usersu15.html says:

-Oxxx
 r
    Keep certain variables in registers (experimental, use with caution).

http://www.freepascal.org/docs-html/prog/progse49.html#x249-25100011.3 says:

-Or:
    This setting causes the code generator to check which variables
are used most, so it can keep those in a register.

Is this optimization flag unsafe? I'm hesitant to enable it because of
that first link, but if it's safe I'd like the speed improvement it
implies.

Thanks,

-SG

--
This email is fiction. Any resemblance to actual events
or persons living or dead is purely coincidental.

Seth Grover
sethdgrover[at]gmail[dot]com



More information about the fpc-devel mailing list