[fpc-devel] -Or optimization flag

2010-04-05 Thread Seth Grover
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
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] -Or optimization flag

2010-04-05 Thread Jonas Maebe

On 05 Apr 2010, at 20:31, Seth Grover wrote:

 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.

-Or is safe and automatically activated with -O2 and higher.


Jonas

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel