Convert MS VC++ name mangling to GCC name mangling
Nathan Sidwell
nathan@codesourcery.com
Tue Mar 4 10:43:00 GMT 2003
Alexander Stock wrote:
> Hello,
>
> I want to convert a with Microsoft Visual C++ 6.0 created dll with
> "Microsoft C++ name mangling" to a dll with "GCC C++ name mangling"
> and I want to ask if it's generally possible to do such a task?
> Can I only demangle the Microsoft C++ names and then mangle them with
> GNU C++ style again or have I to watch some other obscure things?
Your scheme should work, provided no information has been lost in the MSVC++
mangling. (It is possible some template information is lost, such that
there are two possible g++ remanglings. I suspect that will not be a problem
in practice.)
I'm sure you're aware that you won't be able to pass class objects across the
library interface.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
The voices in my head said this was stupid too
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
More information about the Gcc-help
mailing list