From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public From: William Clodius Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/17 Message-ID: <3447C681.167E@lanl.gov>#1/1 X-Deja-AN: 281325738 References: <61g30t$o2n@news-rocq.inria.fr> <623ek6$ef5$1@news.iastate.edu> Organization: Los Alamos National Lab Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec Craig Burley wrote: > > simg@netcom.com (SimGraphics) writes: > > > In article , > > Craig Burley wrote: > > >this, nobody seems to have put forth any evidence, or even persuasive > > >counter-arguments, to the contrary: C offers *very* little in terms > > >of low-level constructs that Fortran doesn't offer. > > > > All right, I'll try. > > > > Think of implementing run time library for two languages, > > using two choices of languages. > > > > 1) C runtime implemented in C > > 2) C runtime implemented in Fortran > > 3) Fortran runtime implemented in C > > 4) Fortran runtime implemented in Fortran > > > > My ordering, from easiest to hardest: 1,3,4,2. > > I don't see any rebuttal there. Agree. > Care to explain what *low-level* > constructs C is offering that Fortran doesn't offer, aside from > pointers? Guaranteed ability to pass some arguments by value, or have a well defined result in the presence of aliasing (whether or not the initial programmer or the user of the code knows what that well defined result is). Compared to Fortran 77, not Fortran 90, structures. Unions (but much of that can be kluged using EQUIVALENCE). (Then again unions themselves are usually kluges in their application.) Of the three above constructs only structures, Fortran 90's derived types, provide what I think of as usefull functionality for numeric programming. > I've already *said* that C's notational convenience > makes it easier to type in the code, but that's not particularly > relevant to getting maximum performance out of existing or new > architectures. There is also the problem of API's on C implemented systems, name mangling, the possibility of copy-in/copy-out Fortran argument passing, i.e., the interlanguage interfacing problem. None of this is strictly a problem with the Fortran language per se, but does influence its useability as a runtime library on most current systems. -- William B. Clodius Phone: (505)-665-9370 Los Alamos Nat. Lab., NIS-2 FAX: (505)-667-3815 PO Box 1663, MS-C323 Group office: (505)-667-5776 Los Alamos, NM 87545 Email: wclodius@lanl.gov