Dynamic Loading of Class Implementation at Runtime.

Mumit Khan khan@xraylith.wisc.edu
Thu Dec 10 09:36:00 GMT 1998


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




More information about the Gcc-bugs mailing list