From owner-freebsd-questions Wed Jul 30 08:37:39 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id IAA09442 for questions-outgoing; Wed, 30 Jul 1997 08:37:39 -0700 (PDT) Received: from SCIENCE-GUY.npt.nuwc.navy.mil (SCIENCE-GUY.NPT.NUWC.NAVY.MIL [129.190.139.47]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA09426 for ; Wed, 30 Jul 1997 08:37:31 -0700 (PDT) Received: from science-guy.npt.nuwc.navy.mil (LOCALHOST [127.0.0.1]) by SCIENCE-GUY.npt.nuwc.navy.mil (8.8.6/8.8.5) with ESMTP id LAA13403; Wed, 30 Jul 1997 11:33:47 -0400 (EDT) Message-Id: <199707301533.LAA13403@SCIENCE-GUY.npt.nuwc.navy.mil> To: Sylvain Hubert Cc: freebsd-questions@FreeBSD.ORG Subject: Re: fortran compiler In-reply-to: Your message of "Tue, 29 Jul 1997 12:27:01 +0200." <19970729122701.26536@gil.physik.rwth-aachen.de> Date: Wed, 30 Jul 1997 11:33:41 -0400 From: Tod Luginbuhl Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Fri, Jul 25, 1997 at 03:31:24PM -0400, Sylvain Hubert wrote: >> Hi! >> >> I am testing the f2c compiler on a PentiumPro (freeBSD OS) and >> it seems that the optimization is not very efficient. It >> might be because I do not use the proper options. I only try the >> option -O3 for optimization. >> >> Do someone knows how to optimize a fortan code for a Pentium Pro, >> in other word, what options should I put? >> >> Or, do someone knows of any good fortran compiler for a PentiumPro >> chip? >> >> Thank you in advance for any reply! >> >> Sylvain... > on Tue, 29 Jul 1997 12:27:01 +0200 Christoph Kukulies wrote: > >In what areas do you want to achieve optiimization? FP performance? >Code size? Code speed? > >Optimizing for C is generally speaking also good for f77 (f2c). > >You might recompile libmsun with -DHAVE_FPU (/etc/make.conf). >But beware of the consequences of loosing IEEE compliance. > Sylvain, It may help you to get the technical report on f2c from Bell Laboratories in the USA. This report describes how various fortran structures are translated to C. This might help you understand the optimization issues. You can down load it from ftp.netlib.org. The file is in the f2c directory and is f2c.ps (login anonymously to ftp.netlib.org, cd to f2c and get f2c.ps). According to the FreeBSD website NAG is selling a Fortran 90 compiler for FreeBSD. The website for NAG is http://www.nag.co.uk. I could not find a price for it on NAG's website. I am very interested in this though. You can also run Fortran compilers for Linux under FreeBSD's Linux emulator. You probably will need to run FreeBSD 2.2.x to get this to work --- you need elf compatibility. I'm currently doing this with Absoft's Fortran 77 compiler for Linux under FreeBSD 2.2-stable. This works well for me, but Absoft's debugger does not work in the emulator. I have not played with the optimization. I hope this helps you. Tod -------------------------------------------------------------------------- Tod Luginbuhl email: t.e.luginbuhl@ieee.org Code 2121 Naval Undersea Warfare Center Telephone: (401) 841-7505 x38241 1176 Howell Street FAX: (401) 841-7453 Newport, Rhode Island USA "Don't argue with drunks and fanatics!" -- Sun Wolf (Barbara Hambly) --------------------------------------------------------------------------