🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #608

Re: demangeling

#608
From: Steve Clamage
Date: Mon, 23 Nov 1992 23:39
30 lines
1491 bytes
FLEINERC%CFRUNI51.BITNET@mitvma.mit.edu writes:


>Does there exist a program to demangle names used by C++ ?
>it should accept for example
>     __ct__7ostreamFv
>and print
>     ostream::ostream()

Name mangling is an implementation detail, not part of the definition
of the C++ language.  There is no one way to mangle names, and indeed,
the ARM recommends that different compilers use different mangling
techniques (if they use name mangling at all).

The reason for the recommendation is that there are many arbitrary
decisions which an implementation must make, and it is unlikely that
two different implemenations will make them the same way.  If name
mangling were the same, it would be possible to link object files
from incompatible compilers, producing bizarre program failures.  If
the program fails to link, you at least have a clue that the compilers
are incompatible.

Thus, there is no one portable demangling program.

Many C++ implementations come with a name demangler .  Check
your documentation, or ask your compiler vendor.
-- 

Steve Clamage, TauMetric Corp, steve@taumet.com
Vice Chair, ANSI C++ Committee, X3J16
Technical Details
Message-ID: <1992Nov23.233957.5097@taumet.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!taumet!steve
References: <9211231128.AA20601@life.ai.mit.edu>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.help,comp.lang.c++
Path: arc1-ca.pugleaf.net!sparky!uunet!taumet!steve
From: steve@taumet.com (Steve Clamage)
Subject: Re: demangeling
Message-ID: <1992Nov23.233957.5097@taumet.com>
Organization: TauMetric Corporation
References: <9211231128.AA20601@life.ai.mit.edu>
Date: Mon, 23 Nov 1992 23:39:57 GMT
Lines: 30