documentation of g++ name mangling
Daniel Berlin
dberlin@redhat.com
Wed Jan 24 06:24:00 GMT 2001
On Wed, 24 Jan 2001, Kellogg, Oliver wrote:
> Hi,
>
> In the name mangling explanations of the G++ Internals
> document ( http://gcc.gnu.org/onlinedocs/gxxint_1.html#SEC29 ),
> I read:
>
> " The letters `G', `M', `O', and `p' also seem to be used for obscure
> purposes ... "
>
> I found the letter G to be generated on a fairly common
> occasion (structs as parameters to methods.)
>
> Is there hope that this will be documented some time?
>
> (Motivation:
> I'm trying to write a tool that automatically
> produces GNAT interfacing code to G++ compiled methods,
> and therefore need to know the exact mangled names.)
The name mangling changed as part of the move to the new ABI.
http://reality.sgi.com/dehnert_engr/cxx/
Look for the draft C++ abi, the mangling grammar should be there.
--Dan
More information about the Gcc
mailing list