rtti

Applies to C++

Purpose

Use this option to generate run-time type identification (RTTI) information for exception handling and for use by the typeid and dynamic_cast operators.

Syntax


Syntax Diagram

where available suboptions are:


rtti The compiler generates the information needed for the RTTI typeid and dynamic_cast operators.
nortti The compiler does not generate RTTI information.

Notes

For best run-time performance, suppress RTTI information generation with the default -qnortti setting.

The C++ language offers a (RTTI) mechanism for determining the class of an object at run time. It consists of two operators:

A type_info class describes the RTTI available and defines the type returned by the typeid operator.

You should be aware of the following effects when specifying the -qrtti compiler option:

Related References

Compiler Command Line Options
eh IBM Copyright 2003