<s>
nm	B-Application
(	O
name	B-Language
mangling	I-Language
)	O
is	O
a	O
Unix	B-Application
command	B-Application
used	O
to	O
dump	O
the	O
symbol	B-Application
table	I-Application
and	O
their	O
attributes	O
from	O
a	O
binary	B-Application
executable	I-Application
file	O
(	O
including	O
libraries	B-Library
,	O
compiled	O
object	B-Application
modules	I-Application
,	O
shared-object	O
files	O
,	O
and	O
standalone	O
executables	B-Application
)	O
.	O
</s>
<s>
The	O
output	O
from	O
nm	B-Application
distinguishes	O
between	O
various	O
symbol	O
types	O
.	O
</s>
<s>
For	O
example	O
,	O
it	O
differentiates	O
between	O
a	O
function	O
that	O
is	O
supplied	O
by	O
an	O
object	B-Application
module	I-Application
and	O
a	O
function	O
that	O
is	O
required	O
by	O
it	O
.	O
</s>
<s>
nm	B-Application
is	O
used	O
as	O
an	O
aid	O
for	O
debugging	O
,	O
to	O
help	O
resolve	O
problems	O
arising	O
from	O
name	O
conflicts	O
and	O
C++	B-Language
name	B-Language
mangling	I-Language
,	O
and	O
to	O
validate	O
other	O
parts	O
of	O
the	O
toolchain	B-General_Concept
.	O
</s>
<s>
This	O
command	B-Application
is	O
shipped	O
with	O
a	O
number	O
of	O
later	O
versions	O
of	O
Unix	B-Application
and	O
similar	B-Operating_System
operating	B-General_Concept
systems	I-General_Concept
including	O
Plan	B-Operating_System
9	I-Operating_System
.	O
</s>
<s>
The	B-Application
GNU	I-Application
Project	I-Application
ships	O
an	O
implementation	O
of	O
nm	B-Application
as	O
part	O
of	O
the	O
GNU	B-Application
Binutils	I-Application
package	O
.	O
</s>
<s>
If	O
the	O
previous	O
code	O
is	O
compiled	O
with	O
the	O
gcc	B-Application
C	B-Language
compiler	O
,	O
the	O
output	O
of	O
the	O
nm	B-Application
command	B-Application
is	O
the	O
following	O
:	O
</s>
<s>
When	O
the	O
C++	B-Language
compiler	O
is	O
used	O
,	O
the	O
output	O
differs	O
:	O
</s>
<s>
The	O
differences	O
between	O
the	O
outputs	O
also	O
show	O
an	O
example	O
of	O
solving	O
the	O
name	B-Language
mangling	I-Language
problem	O
by	O
using	O
extern	O
"	O
C	B-Language
"	O
in	O
C++	B-Language
code	I-Language
.	O
</s>
