Optimization Level Options
-O0: does not enable any optimization, which brings poor performance. This is the default optimization level of BiSheng compiler and usually used for application debugging.
-O1: enables some optimization algorithms, usually some basic algorithms, without affecting the compilation speed.
-O2: enables most optimization algorithms.
-O3: enables more optimization algorithms that cause code bloat. Its level is higher than -O2.
-Ofast: enables all optimizations in -O3 and other radical optimizations that may violate strict compliance with language standards.
-Os: uses extra optimization to reduce a code size based on -O2.
Parent topic: Compiler Optimization Guide