Skip to Content
Hands-On Embedded Programming with C++17
book

Hands-On Embedded Programming with C++17

by Maya Posch
January 2019
Intermediate to advanced
458 pages
10h 35m
English
Packt Publishing
Content preview from Hands-On Embedded Programming with C++17

Runtime type information

The main purpose of RTTI is to allow the use of safe typecasting, like with the dynamic_cast<> operator. As RTTI involves storing additional information for each polymorphic class, it has a certain amount of overhead.

This is a runtime feature, as the name gives away, and thus can be disabled if you don't need the features it provides. Disabling RTTI is common practice on some embedded platforms, especially as it is rarely used on low-resource platforms, such as 8-bit MCUs.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On RTOS with Microcontrollers

Hands-On RTOS with Microcontrollers

Brian Amos

Publisher Resources

ISBN: 9781788629300Supplemental Content