assembly code produced from G++
charfi asma
charfiasma@yahoo.fr
Thu Aug 18 14:42:00 GMT 2011
Thank you for your quick answer. If I understand, names mangled are helpful in
some cases but not necesseray to produce the .o nor the .out
and thus, my assembly file generated withour mangled names is valid.
thank you again.
Asma
----- Message d'origine ----
De : Jonathan Wakely <jwakely.gcc@gmail.com>
À : charfi asma <charfiasma@yahoo.fr>
Cc : gcc-help@gcc.gnu.org
Envoyé le : Jeu 18 août 2011, 16h 10min 48s
Objet : Re: assembly code produced from G++
Names in C++ are mangled to ensure that MyClass::foo(int) is a
distinct symbol from MyClass::foo(char) and AnotherClass::foo(int)
The mangling needs to be repeatable, so that if I compile
MyClass::foo(int) into an object file, and you compile another object
file which depends on MyClass::foo(int), the two symbols have the same
name and can be linked.
More information about the Gcc-help
mailing list