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: EGCS Development Group <egcs at cygnus dot com>
- Subject: Re: Dynamic Loading of Class Implementation at Runtime.
- From: Mumit Khan <khan at xraylith dot wisc dot EDU>
- Date: Thu, 10 Dec 1998 11:36:12 -0600
Alexandre Oliva <oliva@dcc.unicamp.br> writes:
>
> Other than that, you might use the mangling/unmangling functions that
> have been recently integrated into libiberty (have they?) to get
> symbol names, but this will be restricted to GNU C++.
You should be able to get the mangling algorithm for most vendor
compilers, with the exception of perhaps the windows-based ones. I've
tried in vain to get this info out of Microsoft.
Currently, the mangling used in GNU C++ (obviously ;-), EDG and a few
others are fairly well known (albeit perhaps not well-documented), so
you're set if those are the compilers you support. Since we currently
only support EDG-based compilers and EGCS, the issue is quite simple
for us, but not if you need to support all the other compilers.
I however recommend an object factory method (via an extern 'C'
interface) that avoids this whole issue.
Regards,
Mumit