11.1. Creating shared objects from C++ source codes

The C++ language, although similar in some respects to the C language, offers many additional facilities. One of these is known as function overloading, which makes it possible to have multiple functions with the same name but different parameter lists. This feature means it is not possible to use the function name alone as a unique identifier in the symbol table of an object file. For this reason, function names in C++ are mangled to produce the symbol name. The mangling uses a code to indicate the number, type, and ordering of parameters to the function.

The term mangle has a specific meaning in compiler products, especially in the C++ compilers, because the language standard allows you to ...

Get Developing and Porting C and C++ Applications on AIX now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.