-fno-rtti & dynamic_cast

I was trying to use dynamic_cast and discovered rtti Run Time Type I something is disabled in the compiler instructions. Is there a reason for disabling this? Can it be turned back on?


-jim lee

The usual reason for disabling run-time type information (RTTI) is the enormous amount of memory (Flash and SRAM for AVR processors) typically used by such data.

Ok, thanks!

-jim lee

You are welcome.

Bear in mind that I have not used RTTI with AVR processors. Despite that fact that enabling it will undoubtedly consume more memory it may still fit your needs.