0Pricing
C++ Academy · Lesson

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

  1. Constraints in Embedded No RTTI No Exceptions
  2. Memory Mapped IO and Volatile
  3. Real-Time Considerations and Latency
  4. Cross-Compilation for ARM Targets
← Back to C++ Academy