SDAA552 September 2026 MSPM0C1103 , MSPM0C1103-Q1 , MSPM0C1104 , MSPM0C1104-Q1
Function Outlining (aka Machine Outlining) is an optimization that identifies recurring sequences of machine code and replaces each instance with a call to a new function containing those operations. Function Outlining is enabled when the -Oz option is selected.
| Function Outlining Option | Effect |
|---|---|
| -moutline | Performs machine outlining within functions; only applied when it is guaranteed that it will reduce the net code size. |
| -moutline-inter-function | More aggressive function outlining but does not always guarantee an overall code size reduction. Can be specified in combination with the -Oz option to enable inter-function outlining. |
| -mno-outline | Disables function outlining for a given compilation unit when using the -Oz option. |