/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* this code contributed by Bert Driehuis <bert_driehuis@nl.compuware.com> */
#include <stdio.h>
// Try to determine the vtable layout generated by G++ // Produces the offset at which the first vtable entry can be // found, and the factor to apply for subsequent entries on stdout. // Example output: // #define GCC_VTABLE_START 0xc // #define GCC_VTABLE_FACTOR 0x8
class test { public: virtualint t1(void); virtualint t2(void); int x;
};
test::test() { this->x = 0x12121212; };
int test::t1(void) { return 1; } int test::t2(void) { return 2; }
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.