From owner-freebsd-current Sun May 23 2:58:13 1999 Delivered-To: freebsd-current@freebsd.org Received: from relay.nuxi.com (nuxi.cs.ucdavis.edu [169.237.7.38]) by hub.freebsd.org (Postfix) with ESMTP id 08AAA14C42 for ; Sun, 23 May 1999 02:58:09 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by relay.nuxi.com (8.9.3/8.9.3) id CAA89522; Sun, 23 May 1999 02:58:08 -0700 (PDT) (envelope-from obrien) Message-ID: <19990523025808.A89493@nuxi.com> Date: Sun, 23 May 1999 02:58:08 -0700 From: "David O'Brien" To: Steve Price , freebsd-current@FreeBSD.ORG Subject: Re: libg2c.a in -current Reply-To: obrien@NUXI.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: ; from Steve Price on Sat, May 22, 1999 at 05:13:20PM -0500 X-Operating-System: FreeBSD 3.2-BETA Organization: The NUXI BSD group X-PGP-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Keyid: 34F9F9D5 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Anyone know why libf2c* was renamed to libg2c* in egcs? Cygnus has hacked (possibly considerably) Bell-Labs' libf2c. To the point a program written to the EGCS's FORTRAN lib wouldn't be linkable with libf2c. Thus they felt the need for a unique name. > Does egcs have a replacement for f2c? Yep, g77. :-) f2c was written to compile FORTRAN programs. It was quicker for the f2c authors to write f2c to output C code than ASM, *AND* it meant they didn't have to deal with code generation, nor optimization. However, there are many optimizations the code generator can do if it knows the input language was FORTRAN. Thus a native FORTRAN compiler (ie, g77) is preferred. f2c was never meant to be a FORTRAN to C translator in which you then maintained the resulting C. > Would anyone object if I installed the header file, g2c.h, along with > the library? Since you seem to believe it is useful, I'll install it. -- -- David (obrien@NUXI.com -or- obrien@FreeBSD.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message