SDAA552
September 2026
MSPM0C1103
,
MSPM0C1103-Q1
,
MSPM0C1104
,
MSPM0C1104-Q1
1
Abstract
Trademarks
1
Introduction
2
C Compiler Optimization
2.1
Optimization Settings
2.1.1
Optimization Level
2.1.2
Optnone
2.1.3
Link Time Optimization – LTO
2.2
Runtime Model Options
2.2.1
Data and Function Sections
2.2.2
Function Outlining
3
Coding Techniques
3.1
Use Smallest Possible Types for Variables and Constants
3.2
Avoid Multiply and Divide
3.3
Use Lookup Tables Instead of Manual Calculation
3.4
Use Functions Effectively
3.5
Implement Down Counting Loops
3.6
Use the __even_in_range() Intrinsic
3.7
volatile Keyword
4
Example
4.1
Optimization Level
4.2
LTO
4.3
Runtime Model Options
5
Summary
6
References
Application Note
Optimizing C Code for Size with MSPM0 MCUs: Tips and Tricks