JargonFile/original/html/M/mangled-name.html
2014-03-27 18:54:56 +00:00

11 lines
2.2 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>mangled name</title><link rel="stylesheet" href="../../jargon.css" type="text/css"/><meta name="generator" content="DocBook XSL Stylesheets V1.61.0"/><link rel="home" href="../index.html" title="The Jargon File"/><link rel="up" href="../M.html" title="M"/><link rel="previous" href="mangle.html" title="mangle"/><link rel="next" href="mangler.html" title="mangler"/></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">mangled name</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="mangle.html">Prev</a> </td><th width="60%" align="center">M</th><td width="20%" align="right"> <a accesskey="n" href="mangler.html">Next</a></td></tr></table><hr/></div><dt><a id="mangled-name"/><dt xmlns="" id="mangled-name"><b>mangled name</b>: <span xmlns="http://www.w3.org/1999/xhtml" class="grammar">n.</span></dt></dt><dd><p> A name, appearing in a C++ object file, that is a coded
representation of the object declaration as it appears in the
source. Mangled names are used because C++ allows multiple objects to have
the same name, as long as they are distinguishable in some other way, such
as by having different parameter types. Thus, the internal name must have
that additional information embedded in it, using the limited character set
allowed by most linkers. For instance, one popular compiler encodes the
standard library function declaration &#8220;<span class="quote">memchr(const
void*,int,unsigned int)</span>&#8221; as &#8220;<span class="quote">@memchr$qpxviui</span>&#8221;.</p></dd><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="mangle.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="../M.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="mangler.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">mangle </td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top"> mangler</td></tr></table></div></body></html>