SPRUI04F july 2015 – april 2023
advice #27000: Detecting compilation without optimization. Use optimization option -o2 or higher.
Your compilation is being done without any optimization options (-o0 and above). This prevents the compiler from using its most powerful optimization techniques, since the -o (--opt_level) options are the foundations for most other optimizations. You could get substantially better performance using -o2 (or above) optimization. Optimization option -o2 is required for the software pipelining loop optimization, which is crucial to getting good performance.
The C/C++ compiler is able to perform various optimizations, but you need to specify optimization options on the command line so that these optimizations are performed. The easiest way to invoke optimization is to specify the --opt_level=n option on the compiler command line. You can use -On to alias the --opt_level option. The n denotes the level of optimization (0, 1, 2, and 3), which controls the type and degree of optimization. See "Invoking Optimization" in Section 4.1 for more information on Optimization Options.