* RE: Convert MS VC++ name mangling to GCC name mangling
@ 2003-03-05 2:13 Yu kenny-a18604
2003-03-05 5:32 ` Ricardo Anguiano
0 siblings, 1 reply; 5+ messages in thread
From: Yu kenny-a18604 @ 2003-03-05 2:13 UTC (permalink / raw)
To: 'Nathan Sidwell', Alexander Stock; +Cc: gcc-help
I am curious about demangling and remangling way. Could anyone show me the process? Or give me relevant document cause I've never know of it before.
Thanks in advance,
Kenny
-----Original Message-----
From: Nathan Sidwell [mailto:nathan@codesourcery.com]
Sent: Tuesday, March 04, 2003 6:44 PM
To: Alexander Stock
Cc: gcc-help@gcc.gnu.org
Subject: 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@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
I
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Convert MS VC++ name mangling to GCC name mangling
2003-03-05 2:13 Convert MS VC++ name mangling to GCC name mangling Yu kenny-a18604
@ 2003-03-05 5:32 ` Ricardo Anguiano
0 siblings, 0 replies; 5+ messages in thread
From: Ricardo Anguiano @ 2003-03-05 5:32 UTC (permalink / raw)
To: Yu kenny-a18604; +Cc: 'Nathan Sidwell', Alexander Stock, gcc-help
Yu kenny-a18604 <kenny.yu@motorola.com> writes:
> I am curious about demangling and remangling way. Could anyone show
> me the process? Or give me relevant document cause I've never know
> of it before.
http://www.codesourcery.com/cxx-abi/abi.html#mangling
--
Ricardo Anguiano
http://www.codesourcery.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Convert MS VC++ name mangling to GCC name mangling
@ 2003-03-06 1:59 Yu kenny-a18604
0 siblings, 0 replies; 5+ messages in thread
From: Yu kenny-a18604 @ 2003-03-06 1:59 UTC (permalink / raw)
To: 'Ricardo Anguiano'
Cc: 'Nathan Sidwell', Alexander Stock, gcc-help
Hi, Alex:
I wonder how you'd like to align MSVS mangled name to GCC one. I feel it tricky. Any tools you will have?
Best regards,
Kenny
-----Original Message-----
From: Ricardo Anguiano [mailto:anguiano@codesourcery.com]
Sent: Wednesday, March 05, 2003 1:32 PM
To: Yu kenny-a18604
Cc: 'Nathan Sidwell'; Alexander Stock; gcc-help@gcc.gnu.org
Subject: Re: Convert MS VC++ name mangling to GCC name mangling
Yu kenny-a18604 <kenny.yu@motorola.com> writes:
> I am curious about demangling and remangling way. Could anyone show
> me the process? Or give me relevant document cause I've never know
> of it before.
http://www.codesourcery.com/cxx-abi/abi.html#mangling
--
Ricardo Anguiano
http://www.codesourcery.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Convert MS VC++ name mangling to GCC name mangling
2003-03-04 0:41 Alexander Stock
@ 2003-03-04 10:43 ` Nathan Sidwell
0 siblings, 0 replies; 5+ messages in thread
From: Nathan Sidwell @ 2003-03-04 10:43 UTC (permalink / raw)
To: Alexander Stock; +Cc: gcc-help
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Convert MS VC++ name mangling to GCC name mangling
@ 2003-03-04 0:41 Alexander Stock
2003-03-04 10:43 ` Nathan Sidwell
0 siblings, 1 reply; 5+ messages in thread
From: Alexander Stock @ 2003-03-04 0:41 UTC (permalink / raw)
To: gcc-help
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?
Thanks in advance,
Alexander Stock
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-03-06 1:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-05 2:13 Convert MS VC++ name mangling to GCC name mangling Yu kenny-a18604
2003-03-05 5:32 ` Ricardo Anguiano
-- strict thread matches above, loose matches on Subject: below --
2003-03-06 1:59 Yu kenny-a18604
2003-03-04 0:41 Alexander Stock
2003-03-04 10:43 ` Nathan Sidwell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).