SPRUI04F july 2015 – april 2023
advice #27001: Detecting compilation with low optimization level.
Use optimization option -o2 or higher.
Your compilation uses low-level optimization options (-o1 and below), which prevents the compiler from using its most powerful optimization techniques.
The C/C++ compiler is able to perform various optimizations, but you can control the level of these optimizations. High-level optimizations are performed in the optimizer and low-level, target-specific optimizations occur in the code generator. You must use high-level optimizations to achieve optimal code. You can invoke optimization by specifying the --opt_level=n option on the compiler command line.
See "Invoking Optimization" in Section 4.1 for more information on Optimization Options. Also see information for Advice #27000 in Section 4.15.1.