home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky gnu.g++.help:1482 comp.lang.c++:16806
- Newsgroups: gnu.g++.help,comp.lang.c++
- Path: 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
-
- 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
-