Site Search

Please give me an overview of the compile options (-o0), (-o1), (-o2), (-o3), and (-os) that can be set from syslib properties.

Nios II Embedded SW(OS)

The meaning of each is shown below.

option
・ -O0 : no optimization
  Use if gdb is not working properly
・ -O1/ -O : basic optimization

Avoid unnecessary register transitions, store values in registers to reduce memory accesses, etc.
・-O2 : Almost all optimizations

No loop unrolling, inlining, or strict aliasing
・-O3 : all optimizations

In addition to -O2 it will be inlined
・ -Os : size optimization

-O2 plus stop optimizations if they must be done resulting in large size


This option is similar to the GNU C/C++ compilation option

Experienced FAE
Free consultation is available.

From specific product specifications to parts selection, the Company FAE will answer your technical concerns free of charge. Please feel free to contact us.