This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC to open the C++ demangle API?
- From: Joe Buck <Joe dot Buck at synopsys dot com>
- To: apm35 at student dot open dot ac dot uk (Andrew Marlow)
- Cc: jason at redhat dot com, gcc at gcc dot gnu dot org
- Date: Wed, 20 Mar 2002 09:55:36 -0800 (PST)
- Subject: Re: GCC to open the C++ demangle API?
> > http://www.codesourcery.com/cxx-abi/abi.html#mangling
Andrew Marlow writes:
> This does not appear to be a standard to me.
> I would call it a documented convention for the Itanium environment.
> I do like the documentation though, especially the use of BNF.
> Thankyou for drawing my attention to this. If only this would be adopted
> by ISO.
This is not in the scope of the ISO C++ standard. The only reason we
need name mangling is so that we can use traditional C-oriented assembers
and linkers, and freezing issues of object layout would degrade
performance on future processors.
These kinds of things will probably be done in the future in a specific
way for each distinct processor/OS-group combination (where "OS-group"
is a group of similar operating systems), except where barriers exist
(for example, Microsoft has patented certain aspects of its C++ object
layout).