Hello. I'm trying to find out wheter CodeWarrior puts vtables generated for C++ classes into global data or code segment. From what I see when browsing generated .MAP files it seems that they go rather into global data. Am I right? Is there any switch that would cause CW to emit vtables into code segment, so that objects of polymorphic classes could be used from within system notification handler?
C++ virtual function tables (vtables) cannot go into the code segment, since they contain pointers that have to be set at runtime, and the values in the code segment cannot be changed. Expanded mode (in CW V8.3 or 9.2) supports putting vtables in an expanded data section that lives on the storage heap, but there's no way to put them in the code segment due to the Palm OS runtime model.
--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
