ARM Technical Support Knowledge Articles

VIRTUAL FUNCTION POINTERS IN DIFFERENT MEMORY SPACES

Applies to: C166 C Compiler

Answer


Information in this article applies to:


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.

Article last edited on: 2004-05-01 14:34:33

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential