MMU and vtable
How does the virtual table accessed in MMU based system?
Re: MMU and vtable
> How does the virtual table accessed in MMU based system?
Virtual tables, a common C++ implementation artifact, have nothing to
do with virtual memory.
They are just named static objects deposited into your object files and
linked into your program along with everything else.
On a virtual memory OS that assigns a separate address space to each
process, it's possible for vtables in an executable to have the same
fixed address every time they are loaded. So they can be accessed by a
direct address. In a dynamic library which can be loaded anywhere in
the address space, they have to be accessed with some indirection: a
"global offset table", like any other function or object.
|All times are GMT. The time now is 12:39 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.