Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

Compaq C++ User Documentation

 

demangle (1)

demangle(1)

Name

demangle - decode C++ name encoding

Syntax

demangle [ -show_mangled_name ] [ -no_vtable_info ] [ - ] [ file... ]

Description

Function name mangling allows object code to have distinct names for functions that share the same name in the C++ source code and enables type-safe linkage. A name demangler is provided to translate such mangled names into the function names that appear in the source code, so that they are recognizable by the user.

The demangle command reads each file in sequence, demangles any Compaq C++ encoded names, and displays the result on the standard output. If no input file is given, or if a minus sign (-) is encountered as an argument (for example, demangle -), the demangle command reads from the standard input file. The demangle utility supports the processing of 8-bit characters.

Options

-
Read from the standard input file.

-show_mangled_name
Display encoded name in parentheses after demangled name.

-no_vtable_info
Suppress the display of information concerning internal symbols (specifically __vtbl and __btbl).

Examples

demangle file
This command demangles a file containing Compaq C++ encoded names.

ld main.o foo.o |& demangle

This command (from the C shell) demangles the output from the linker (ld) when linking the main.o and foo.o files.

cxx foo.cxx |& demangle

This command (from the C shell) demangles the output from the linker when it is invoked implicitly through the cxx command to compile foo.cxx.

See also cxx(1)

About PDF files: The PDF files on this site can be read online or printed using Adobe® Acrobat® Reader. If you do not have this software on your system, you may download it from Adobe's website.
Privacy statement Using this site means you accept its terms C++ support
© 2008 Hewlett-Packard Development Company, L.P.