This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Dynamic Loading of Class Implementation at Runtime.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]