Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2010-04

-Or optimization flag

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

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

Reply by email

Jonas Maebe
to Seth Grover
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

Reply by email