[TUHS] why the leading under score added to function names?
John Cowan
cowan at mercury.ccil.org
Tue Feb 21 13:33:39 AEST 2012
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
More information about the TUHS
mailing list