Notifications
Clear all
Embedded C and Register-Level Code
1
Posts
1
Users
0
Reactions
0
Views
Topic starter
27/06/2026 10:10 pm
If code only breaks at higher optimization levels, assume the compiler found a contract violation before assuming the compiler is wrong.
- Check initialization order
- Check aliasing and lifetime assumptions
- Check ISR/shared-data rules
- Check memory sections and startup copy/zero logic
Reduce the bug to the smallest hardware-real case you can still explain.
