From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 6D1D42F9EA for ; Wed, 1 Nov 2000 17:26:06 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id eA1MQ6418198 for axp-list@listman.redhat.com; Wed, 1 Nov 2000 17:26:06 -0500 Received: from newton.math.purdue.edu (root@newton.math.purdue.edu [128.210.3.6]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id eA1MQ5D18192 for ; Wed, 1 Nov 2000 17:26:05 -0500 Received: from polya.math.purdue.edu (lucier@polya.math.purdue.edu [128.210.3.194]) by newton.math.purdue.edu (8.10.1/8.10.1/PURDUE_MATH-4.0) with ESMTP id eA1MQ3L00995; Wed, 1 Nov 2000 17:26:03 -0500 (EST) Received: (from lucier@localhost) by polya.math.purdue.edu (8.10.1/8.10.1/PURDUE_MATH-4.0) id eA1MQ2I04057; Wed, 1 Nov 2000 17:26:02 -0500 (EST) Date: Wed, 1 Nov 2000 17:26:02 -0500 (EST) From: Brad Lucier Message-Id: <200011012226.eA1MQ2I04057@polya.math.purdue.edu> To: axp-list@redhat.com Subject: Re: A few questions about compiling code and performance Cc: lucier@math.purdue.edu X-Sun-Charset: US-ASCII X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors > On Wed, 1 Nov 2000, J. Pedro Sousa do Amaral wrote: > > This FORTRAN code was initially set to compile with the flag > > -fast, but that wouldn't work in my system (AS 200, RH 5.2 highly modified, > > latest stable kernel, and pretty recent compilers--g77 version egcs-2.91.66 > > 19990314). Is there an equivalent flag in the GNU FORTRAN compiler? > > -fast is a compiler specific flag. gnu compilers use -O for general > optimizations, which will probably make it run faster. i dont use > fortran, but with gcc, there are multiple levels of optimization that get > more aggressive (eg -O6 is more sophisticated than -O2, which may or may > not mean it runs faster) use -ffast-math with gcc/g77 where you'd use -fast with ccc/fort