.. _sect_debug_optim:

Optimizations
=============

Compiler optimizations are great for saving space or speeding up execution.
However, these optimizations can be very difficult to debug around. There are
multiple levels at which optimization can be turned on or off.

Project-wide optimization settings are the most general. Sometimes, given the
constraints of the device, it is impossible to lower the size optimization
level. File-wide optimization settings can be used like project-wide
optimizations to turn on or off certain settings. The most granular control is
using compiler directives to control optimization at a function level.
