From mboxrd@z Thu Jan 1 00:00:00 1970 From: cowan@mercury.ccil.org (John Cowan) Date: Mon, 20 Feb 2012 22:33:39 -0500 Subject: [TUHS] why the leading under score added to function names? In-Reply-To: References: <201202202052.q1KKqagi002055@freefriends.org> <96DE558D-5FE2-4F6F-BC83-18EC727162FA@coraid.com> Message-ID: <20120221033339.GA11143@mercury.ccil.org> Warner Losh scripsit: > Also, the fortran compiler would emit entry_ to as to not conflict > either. Made calling C from Fortran, and vice versa, a lot of fun... Unix f77 emitted _foo_, that is, what C saw as foo_. In effect you could call arbitrary Fortran routines from C, but not really vice versa: in order to do so, the C functions had to have names ending in _ and use the f77 type system. -- A rabbi whose congregation doesn't want John Cowan to drive him out of town isn't a rabbi, http://www.ccil.org/~cowan and a rabbi who lets them do it cowan at ccil.org isn't a man. --Jewish saying