Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 xcode 5 中,优化级别引入了一个名为-Ofast(Fastest,Aggressive Optimizations)的新级别。我应该何时以及如何使用这个级别?
-Ofast
在 GCC 中,-Ofast 意味着允许编译器忽略浮点数的有限精度,并假设它们遵循与实数相同的规则。这可以实现许多优化,但可能会由于舍入误差而导致答案发生变化。
我不知道 Xcode 是否不同。
-Ofast 启用 -O3、矢量化、严格混叠和快速数学。