This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Dynamic Loading of Class Implementation at Runtime.
- To: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Subject: Re: Dynamic Loading of Class Implementation at Runtime.
- From: Ruslan Shevchenko <Ruslan at Shevchenko dot Kiev dot UA>
- Date: Thu, 10 Dec 1998 17:10:59 +0000
- CC: scherrey at proteus-tech dot com, EGCS Development Group <egcs at cygnus dot com>
- References: <366F6850.9A1FA95A@gte.net> <orogpcdoy8.fsf@araguaia.dcc.unicamp.br>
- Reply-To: rssh at grad dot kiev dot ua
Alexandre Oliva wrote:
> On Dec 10, 1998, Benjamin Scherrey <scherrey@gte.net> wrote:
>
> > information on how to load, at runtime, from a shared library, the
> > implementation of a class (or its subclass) and then be able to unload
> > it and load a new implementation.
>
> I don't quite understand. There's no important difference between the
> implementation of C functions and C++ methods, from the point of view
> of a shared library. The only relevant difference is that C++
>
mangling.
in C I know, that object symbol name is '_' + C-source name.
in C++ -- not.
> libraries may contain dynamic initialization, and destructors of
> dynamically initialized objects won't be run when the library is
> unloaded, only when the program terminates (and thus the program will
> probably crash :-(
>
> --
> Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org}
> oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
> Universidade Estadual de Campinas, SP, Brasil