In xcode 5, the Optimization level introduce a new level named -Ofast
(Fastest,Aggressive Optimizations). When and how should I use this level?
Asked
Active
Viewed 2,479 times
5
2 Answers
2
In GCC, -Ofast means that the compiler is allowed to ignore finite precision of floating point numbers, and assume that they follow the same rules as real numbers. This enables many optimizations, but may cause changes in the answer due to rounding error.
I don't know if Xcode is different.

Demi
- 3,535
- 5
- 29
- 45
-
Xcode just passes this compiler flag on to GCC or Clang. – Raptor007 Jan 10 '23 at 18:34