C++ name mangling for local entities

Ian Lance Taylor iant@google.com
Thu Oct 19 22:31:00 GMT 2006


gkeating@apple.com (Geoffrey Keating) writes:

> For GCC, I've found it necessary to have a way to name local (that is,
> namespace-scope 'static') variables and functions which allows more
> than one such symbol to be present and have distinct mangled names.

Out of curiousity: why start the name with "_Z" at all?  If you don't
start it with "_Z", then you don't have to worry about the standard
name mangling.

Ian



More information about the Gcc mailing list