ほぼ雑記的メモ
class A{ public: int a; int b; A(); virtual ~A(); virtual void hoge(); }; A::A() { a = 0x11111111; b = 0x22222222; } A::~A() { printf("A\n"); } void A::hoge() { printf("Ahoge\n"); }
__1A: pushl %ebp movl %esp,%ebp movl 8(%ebp),%edx movl $_vt$1A,8(%edx) movl $286331153,(%edx) movl $572662306,4(%edx)
class B: public A{ public: int c; B(); virtual ~B(); virtual void hoge(); };
Powered by Red Leaf ( Rev. c78c769f2 ), © Issei Numata, 2007-2021