From Jason Turner
Watch on YouTube

Summary

This episode demonstrates how modern C++ features can be used to optimize embedded systems code for the MSP430 microcontroller, reducing program size and improving performance. Jason shows how combining constexpr and templates enables compile-time optimizations that eliminate runtime checks for interrupt vectors, reducing the assembly code size by approximately half. The approach uses template metaprogramming to map interrupt types to handlers at compile-time, resulting in better performance without sacrificing the high-level interface benefits of C++.

Resources

Tags