Volatile, const, static and callbacks
Distinguish qualifiers, storage duration and callbacks, including target-specific assumptions about memory and peripheral accesses.
View lesson accessAll lessonsWhat the lesson covers
The course lesson is called The flash that filled up. A release build freezes at start-up, the linker reports RAM overflow on a table that should live in flash, and a 40-case switch statement needs to become a table.
- volatile
- const
- static
- function pointers
- callbacks
Before you start
Question to think about: Which guarantees come from the C language, and which depend on the compiler or device?
Preparation exercise: List each object's lifetime, ownership and access context before choosing its declaration.
This is an original public study prompt, not the paid lesson or its solution. The interactive course contains the walkthroughs, labs, exercises and recaps.
Related free reading
Test your understanding
Practice free firmware interview questions and mock interviews · Assess your readiness