www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/15/20:33:47

Xref: news2.mv.net comp.os.msdos.djgpp:3876
From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: strange function symbol names?
Date: Tue, 14 May 1996 07:57:01 -0700
Organization: Alcyone Systems
Lines: 19
Message-ID: <31989F3D.3317B46@alcyone.com>
References: <4n89hk$dsc AT news DOT luth DOT se> <4n8g0j$1aqe AT rs18 DOT hrz DOT th-darmstadt DOT de>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Alexander Lehmann wrote:

> This is called C++ name mangling. The problem is that you can have the same
> function name with different parameter/return value types and the proper
> function is called depening of the types. To make the linker distinguish
> the different functions, the types are somehow encoded into the function
> names. (In a reversible manner, I think, the debugger, nm etc can correctly
> list the functions).

Precisely.  Any good reference on C++ (such as _The Annotated C++ Reference_ by
Ellis and Stroustrup) will detail the manner in which the names are mangled.
It's a part of the draft standard.

-- 
Erik Max Francis &tSftDotIotE && http://www.alcyone.com/max && max AT alcyone DOT com
San Jose, California, U.S.A. && 37 20 07 N 121 53 38 W && the 4th R is respect
H.3`S,3,P,3$S,#$Q,C`Q,3,P,3$S,#$Q,3`Q,3,P,C$Q,#(Q.#`-"C`- && 1love && folasade
Omnia quia sunt, lumina sunt. && Dominion, GIGO, GOOGOL, Omega, Psi, Strategem
"Out from his breast/his soul went to seek/the doom of the just." -- _Beowulf_

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019