The compiler provides two options for optimizing for code
size and performance:
-Ospace
This option causes the compiler to optimize mainly
for code size. This is the default option.
-Otime
This
option causes the compiler to optimize mainly for speed.
For best results, you must build your application using the
most appropriate command-line option.
Note
These command-line options instruct the compiler to use optimizations
that deliver the effect wanted in the vast majority of cases. However,
it is not guaranteed that -Otime always generates faster
code, or that -Ospace always generates smaller
code.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.