There will also be trampoline functions for any virtual function that is not overridden, which sets the this* appropriately using that offset.
An example of a simple virtual base class: virtual-sub.cc, virtual-sub.s, virtual-sub.listing.
An example of the diamond problem: virtual-diamond.cc, virtual-diamond.s, virtual-diamond.listing.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
More information, including a better description of what VTT is for, at http://stackoverflow.com/questions/6258559/what-is-the-vtt-for-a-class.
TODO: Build an example that needs VTT.
TODO: Draw some pictures.