What is Name mangling?

A C++ compiler's encoding of argument types and namespaces into a function's symbol name, so the linker can tell overloaded functions apart.

Field: Linkers, Loaders & Executables

Questions that mention Name mangling (1)

  1. What is the main purpose of name mangling, in which a C++ compiler encodes argument types and other information into symbol names?

Related terms

Linker Address space layout randomization (ASLR) BSS section Dynamic linker Dynamic linking Entry point Executable and Linkable Format (ELF) Global offset table Heap memory Linker script

Back to the glossary