[cfe-dev] Name mangling scheme
Steve Naroff
snaroff at apple.com
Sun Apr 6 07:46:38 PDT 2008
Yes, GCC implements the ABI from the codesourcery link below. As with
any spec/doc, I don't know if it is entirely in sync with the latest
GCC implementation. I think it makes sense for clang to (eventually)
implement this ABI.
Making it configurable is an interesting idea if we actually have
another compelling ABI to select. As Seo says, the MS name mangling
could be interesting (though I am not aware of any public
documentation on it).
snaroff
On Apr 6, 2008, at 7:29 AM, Cédric Venet wrote:
> Hi,
>
> As we start adding C++ support to clang, we will need to mangle name
> in
> codegen. Which scheme should be used?
>
> The same as gcc 3.x? I didn't found any real documentation on it,
> except
> this sentence on Wikipedia:
>
> "
> On IA-64, a standard ABI exists (see external links), which defines
> (among
> other things) a standard name-mangling scheme, and which is used by
> all the
> IA-64 compilers. GNU GCC 3.x, in addition, has adopted the name
> mangling
> scheme defined in this standard for use on other, non-Intel platforms.
> "
>
> Which link to http://www.codesourcery.com/cxx-abi/abi.html#mangling .
> Someone can confirm this?
>
> Perhaps the scheme should be configurable and selectable, but I am
> not sure
> this is a good idea.
>
> Regards,
>
> Cédric
>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list