[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


far_vtables

Description:

Controls the use of 32-bit addressing for C++ virtual function tables.

Compatibility:

This pragma is compatible with the following platform targets:

68K

PowerPC
NEC V800
Intel x86
MIPS

Embedded 68K

Prototype:
  #pragma far_vtables on | off | reset Remarks:

This pragma applies to Mac OS on 68K and embedded 68K programming only.

A class with virtual function members has to create a virtual function dispatch table in a data segment. If this pragma is on, that table can be any size since a the compiler uses 32-bit addressing to refer to the table, instead of 16-bit addressing. Your program will also be slightly bigger and slower. If this pragma is off, the table is stored as near data and adds to the 64K limit on near data.

This pragma corresponds to the Far Method Tables option in the 68K Processor settings panel. To check whether this option is on, use __option (far_vtables), described in "Checking Options."


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 17, 2000