Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!news.cs.indiana.edu!know!cs.utexas.edu!radar!cadillac!pebbles!ned From: ned@pebbles.cad.mcc.com (Ned Nowotny) Newsgroups: comp.lang.c++ Subject: Re: c++ name mangler sought Message-ID: <18279@cadillac.CAD.MCC.COM> Date: 3 Apr 91 23:56:39 GMT References: <71574@microsoft.UUCP> <41560@ucbvax.BERKELEY.EDU> <1991Apr3.170401.4903@netcom.COM> Sender: news@cadillac.CAD.MCC.COM Reply-To: ned%cad@MCC.COM (Ned Nowotny) Distribution: usa Organization: MCC CAD Program, Austin, TX Lines: 41 In article <1991Apr3.170401.4903@netcom.COM> aed@netcom.COM (Andrew Davidson) writes: => =>> =>>Article 10088 (9 more) in comp.lang.c++: =>>From: jbuck@janus.Berkeley.EDU (Joe Buck) =>>Subject: Re: c++ name mangler sought =>>Date: 3 Apr 91 00:52:09 GMT =>> =>Who says you need to =>>mangle at all? What we do now reminds me of the kludgery the Eunice =>>(Unix on top of VMS) system goes through to represent arbitrary Unix =>>filenames on top of a filesystem with more restricted filenames: =>>right, =>>it does name mangling. cfront needs to do name mangling because it =>>produces C. But true C++ compilers don't need to do name mangling at =>>all; they only need a minor modification to the linker. =>> => => =>I think in general most of use to not realy care if function names are =>mangled or not. we are just trying to get dyanmic linking and loading =>to work. In general we need some way to map the functions names we =>write in C++ or any other lang, with the correct symbol in the object =>file we are loading. => Some of us would also like to link objects compiled by one C++ compiler with objects compiled by another. Is the ANSI C++ committee looking into linking and C++ object libraries? Or, does anyone care about libraries; modules as opposed to classes; name space pollution; interoperability with compilers for C, C++, Ada, etc. which may, by necessity, come from different vendors; and so on? (By the way, are there any reasons, other than political, that G++ does not use the same name mangling scheme as the one documented in the ARM? Or has that changed since G++ 1.37.1?) Ned Nowotny, MCC CAD Program, Box 200195, Austin, TX 78720 Ph: (512) 338-3715 ARPA: ned@mcc.com UUCP: ...!cs.utexas.edu!milano!cadillac!ned ------------------------------------------------------------------------------- "We have ways to make you scream." - Intel advertisement in the June 1989 DDJ.