RE: how to specify no vtable for a class ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




thanks for the answer. I've searched a bit with google, and i've found that web page:

http://www.maubi.net/~waterson/mozilla/journals/2000-11.html

It is said: "[..]if there was an equivalent to __declspec(novtable). Turns out that there sort of is: #pragma interface."

Do you think that this pragma can help ?

thank you

Vincent Torri

On Thu, 31 Aug 2006, John \(Eljay\) Love-Jensen wrote:

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/

--
Ce message a été vérifié par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a été trouvé.
Message délivré par le serveur de messagerie de l'Université d'Evry.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux