This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: Convert MS VC++ name mangling to GCC name mangling


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



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