|Name mangling email@example.com (Young Wei Kuan) (2001-07-01)|
|Re: Name mangling firstname.lastname@example.org (Thant Tessman) (2001-07-02)|
|Re: Name mangling email@example.com.OZ.AU (2001-07-03)|
|Re: Name mangling firstname.lastname@example.org (Toon Moene) (2001-07-06)|
|Re: Name mangling email@example.com (Alain Miniussi) (2001-07-06)|
|Re: Name mangling firstname.lastname@example.org (Gabriel Dos Reis) (2001-07-17)|
|Re: Name mangling email@example.com (Alain Miniussi) (2001-07-18)|
|Re: Name mangling firstname.lastname@example.org (Gabriel Dos Reis) (2001-07-23)|
|From:||email@example.com.OZ.AU (Fergus Henderson)|
|Date:||3 Jul 2001 23:23:38 -0400|
|Organization:||Computer Science, University of Melbourne|
|Keywords:||GCC, C++, debug|
|Posted-Date:||03 Jul 2001 23:23:37 EDT|
Young Wei Kuan wrote:
> I understand g++ 3.0 has changed its name-mangling scheme.
> [...] Why is it that object code compiled by g++ 2.95 is incompatible with
> that of gcc3.0?
Object code compiled by g++ 2.95 is incompatible with that of g++ 3.0
because of changes in the way things are implemented. For example,
g++ 3.0 uses a different implementation of exception handling than g++
2.95 did. This affected compatibility with code compiled with g++
2.95, i.e. the ABI (Application Binary Interface) changed.
When compilers change the way things are implemented in ways that
change the ABI, they often change the name-mangling scheme at the same
time, to prevent users from accidentally linking together components
that are not compatible and which might fail mysteriously at run-time
if they were linked together. Using a different name mangling scheme
can ensure that such problems result in link errors rather than
However, I don't know if that is what motivated changes in name
mangling between g++ 2.95 and g++ 3.0, or whether they were needed for
other reasons (e.g. standard-conformant handling of certain template
Fergus Henderson <firstname.lastname@example.org> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
Return to the
Search the comp.compilers archives again.