Re: New Implementation of Virtual Functions in C++

johnmce@texas.net (John McEnerney)
19 Nov 1999 22:32:52 -0500

          From comp.compilers

Related articles
New Implementation of Virtual Functions in C++ sjmccaug@prairienet.org (1999-11-18)
Re: New Implementation of Virtual Functions in C++ johnmce@texas.net (1999-11-19)
Re: New Implementation of Virtual Functions in C++ neeri@iis.ee.ethz.ch (Matthias Neeracher) (1999-11-19)
Re: New Implementation of Virtual Functions in C++ landauer@apple.com (1999-11-19)
Re: New Implementation of Virtual Functions in C++ jsgray@acm.org (Jan Gray) (1999-11-23)
| List of all articles for this month |

From: johnmce@texas.net (John McEnerney)
Newsgroups: comp.compilers
Date: 19 Nov 1999 22:32:52 -0500
Organization: Compilers Central
References: 99-11-100
Keywords: C++, code

sjmccaug@prairienet.org (Scott J. McCaughrin) wrote:


> A colleague informs me that virtual functions are now more commonly
> implemented via thunks (instead of class vtbls). He couldn't cite a
> source for this. Can you?


Multiple Inheritance is now commonly implemented via thunks. This
allows the same vtable format to be used in both the single- and
multiple-inheritance cases. The thunk encodes the adjustment to the
'this' pointer that used to be part of the (original cfront) vtable
format.
--
John McEnerney (johnmce@texas.net)
[Ah, that makes sense, presuming you mean "function wrappers" rather than
thunks. -John]





Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.