C++ vtable layout



A virtual table (vtable) is a table of information used to dispatch virtual functions, to access virtual base class subobjects, and to access information for runtime type identification (RTTI).

Virtual Table Components and Order :

1 Virtual call (vcall) offsets

2 Virtual Base (vbase) offsets

3 The offset to top holds the displacement to the top of the object

4 The typeinfo pointer

The virtual table address point points here

5 Virtual function pointers


阅读更多
文章标签: C++ABI vtable
个人分类: C++
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

不良信息举报

C++ vtable layout

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭