This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: how to specify no vtable for a class ?
- From: "John \(Eljay\) Love-Jensen" <eljay at adobe dot com>
- To: "Vincent Torri" <vtorri at univ-evry dot fr>, <gcc-help at gcc dot gnu dot org>
- Date: Thu, 31 Aug 2006 04:43:51 -0700
- Subject: RE: how to specify no vtable for a class ?
- References: <Pine.LNX.4.64.0608311221490.7880@grozny.maths.univ-evry.fr>
Hi Vincent,
I am not aware of a GCC C++ equivalent to the MSVC++ __declspec(novtable).
Since __declspec(novtable) is a hand-coded optimization, you should be able to get by without having one.
I'd be shocked if the absence of that (questionable!) optimization was sufficiently a performance penalty as to be warranted, even in contrived toy applications meant to exacerbate that situation. Unless profiling indicates otherwise -- then I'd be a believer.
--Eljay
MSDN article on __declspec(novtable):
http://msdn.microsoft.com/msdnmag/issues/0300/c/