-Qvtp: Qualifier for Virtual Table Pointers

Group

CODE GENERATION

Scope

Application

Syntax
  -Qvtp(none|far|near)
  
  
Arguments

None

Default
  -Qvptnone
  
  
Defines

None

Pragmas

None

Description

Using a virtual function in C++ requires an additional pointer to virtual function tables. The Compiler cannot access the pointer and generates the pointer in every class object when virtual function tables are associated.

Note: Specifying qualifiers not supported by the Backend or CPU has no effect (refer Backend).
Example
  -QvtpFar
  
  

This sets the qualifier for virtual table pointers to __far, which enables placement of the virtual tables into a __FAR_SEG segment (if the Backend or CPU supports __FAR_SEG segments).