LANGUAGE
Compilation Unit
-Cn [= {Vf|Tpl|Ptm|Mih|Ctr|Cpr}]
Vf: Do not allow virtual functions
Tpl: Do not allow templates
Ptm: Do not allow pointer to member
Mih: Do not allow multiple inheritance and virtual base classes
Ctr: Do not create compiler defined functions
Cpr: Do not allow class parameters and class returns
None
None
None
If the -C++c option is enabled, you can disable the following compactC++ features:
Avoid having virtual tables that consume a lot of memory.
Avoid having many generated functions perform similar operations.
Avoid having pointer-to-member objects that consume a lot of memory.
Avoid having complex class hierarchies. Because virtual base classes are logical only when used with multiple inheritance, they are also not allowed.
With this option enabled, the Compiler does not create those functions. This is useful when compiling C sources with the C++ Compiler, assuming you do not want C structures to acquire member functions.
Avoid overhead with Copy Constructor and Destructor calls when passing parameters, and passing return values of class type.
-C++c -Cn=Ctr