Keil Logo

C166: VIRTUAL FUNCTION POINTERS IN DIFFERENT MEMORY SPACES


Information in this article applies to:

  • EC166 All Versions

QUESTION

I am using virtual functions and I see they are located in sections with the prefix __vtbl__. Is there a way to locate this section in some specific memory regions?

I am using the HLARGE memory model and I saw that these sections are located in the HDATA0 memory class. Can I define them in near memory?

ANSWER

The memory class HDATA0 can be located to any memory space. Therefore it is possible to locate the virtual function tables in any address space.

However, you cannot re-allocate the virtual function tables to near memory, since they must match the memory model definitions, and they must fit the function pointer size used in your program.

Last Reviewed: Saturday, May 1, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.