This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Convert MS VC++ name mangling to GCC name mangling
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Alexander Stock <zensox at zensox dot ath dot cx>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 04 Mar 2003 10:43:38 +0000
- Subject: Re: Convert MS VC++ name mangling to GCC name mangling
- Organization: Codesourcery LLC
- References: <5053812308.20030304014132@zensox.ath.cx>
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 at codesourcery dot com : http://www.cs.bris.ac.uk/~nathan/ : nathan at acm dot org