Path: utzoo!attcan!uunet!camex!circus!geoff From: geoff@circus.camex.com (Geoffrey Knauth) Newsgroups: comp.lang.c++ Subject: Re: cfront name mangling Keywords: name mangle Message-ID: <1427@camex.COM> Date: 13 Jul 90 14:28:47 GMT References: <140@emtek.UUCP> Sender: news@Camex.COM Reply-To: geoff@camex.com (Geoffrey Knauth) Organization: Camex Inc., Boston, MA Lines: 17 In article <140@emtek.UUCP> matt@emtek.UUCP (Matt Meola) writes: > >Does anyone know why cfront mangles the name catch_sig(int) into >catch_sig__FiPFve_v ? My code compiles fine, but the loader (ld) >complains about not knowing about the name catch_sig__FiPFve_v. >Any ideas? I believe the extra characters type-encode the function and provide it a signature (for the linker's benefit). See section 7.2.1c (p. 122) of the Annotated C++ Reference Manual by Ellis and Stroustrup. My initial parse of FiPFve_v is: F - global function, i - 1st arg "int", P - pointer, F - function, v - "void", e - "...", _v - dunno. I'm sure someone else can interpret this more intelligently. Geoffrey S. Knauth geoff@camex.com Camex, Inc., 75 Kneeland St. geoff%camex@uunet.uu.net Boston, MA 02111, (617) 426-3577 x451 standard disclaimers