This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]