optimize_for_size

Controls optimization to reduce the size of object code.

#pragma optimize_for_size on | off | reset
  
Remarks

This setting lets you choose what the compiler does when it must decide between creating small code or fast code. If you enable this pragma, the compiler creates smaller object code at the expense of speed. It also ignores the inline directive and generates function calls to call any function declared inline . If you disable this pragma, the compiler creates faster object code at the expense of size.

The pragma corresponds to the Optimize for Size setting on the Global Optimizations panel.

Related information
global_optimizer
ipa
ipa_inline_max_auto_size
ipa_not_complete
load_store_elimination
opt_common_subs
opt_dead_assignments
opt_dead_code
opt_lifetimes
opt_loop_invariants
opt_propagation
opt_strength_reduction
opt_strength_reduction_strict
opt_unroll_loops
opt_vectorize_loops
optimization_level
optimizewithasm
pack
strictheaderchecking