Constraints in Embedded No RTTI No Exceptions
Work within typical embedded subsets that disable RTTI and exceptions.
Embedded C++
Embedded systems have constraints: limited RAM, no MMU, real-time deadlines. The C++ "freestanding" subset removes parts of the language that are too expensive.
Why No RTTI?
RTTI (Run-Time Type Information) supports dynamic_cast and typeid. Each polymorphic class carries an extra pointer; RTTI tables consume code size. Disable with -fno-rtti.
All lessons in this course
- Constraints in Embedded No RTTI No Exceptions
- Memory Mapped IO and Volatile
- Real-Time Considerations and Latency
- Cross-Compilation for ARM Targets