Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Matt Nelson <mnelson@dynatec.com.delete-this-part-to-reply>
Subject: Re: Fortran on the Alpha
Date: 1998/04/16	[thread overview]
Message-ID: <6h57r6$s09@bgtnsc03.worldnet.att.net> (raw)
In-Reply-To: slrn6j9sm3.6ml.ren@spans.gscc.nrcan.gc.ca


we are going through this right now on our new LX164 screamer.  we figured that
migrating from linux/intel to linux/alpha would be easy, since we would be using
g77 on both platforms.  we were in for a surprise.  some specifics:

  - on our linux/intel box, we use g77 0.5.19 (we haven't had any reason to
upgrade...)
    the g77 contained in egcs-1.0.2 is 0.5.22.  biiiig difference.  lots of code
wont
    compile anymore w/out mods, and we had to learn the -fno-global switch to
allow
    our dynamic memory allocation hack to work (we use malloc and pass the
"array"             around w/ %val(pointer)).  so if you are currently using an
older g77, you might
    want to update it to get a preview of porting problems.

  - this one is really a pain:  on our DU/alpha and linux/intel boxes, a    
sequential-access unformatted file has a 4-byte record mark at the beginning
    and end of each record.  on linux/alpha under egcs, they are twice as large.
    this means that sharing data files across the platforms is difficult.

  - and finally, we are seeing pretty poor performance under egcs on
linux/alpha.
    the consensus (of the three users that are blazing the new trails on the new
    linux/alpha box) is that they are seeing about a 2x speedup over our old
    DU/alpha.  that was a 133 MHz machine w/ 128M.  the new one is 566 MHz w/
512M.
    ugh.

when we purchased the new alpha from microway, we asked the sales rep "why would
we
want to spend $7k for DU+Fortran when linux is free?  his answer was that if you
do a lot of fortran development, you probably want to go with DU.  that's not
the answer that us Linux advocates want to hear, but the fact is that Digital's
Fortran compiler is *really* good, and g77 or egcs is still pretty green.

we also tried the NDP fortran that microway sells.  it appears to be a 64-bit
port of a  32-bit compiler.  and it shows.  for example:  it does not support
integer*8.  this
means that our malloc/%val() dynamic memory allocation trick will not work,
since there isn't an integer big enough to hold a pointer.  that was a huge
show-stopper for us,
so we haven't done much more testing with it.  our quick impression (other than
the
I*8 feature-of-death) is that it's a fairly full-featured compiler, and has an
easier time with ancient VAX fortran code.

good luck.

-matt

Richard Nairn wrote:
> 
> We are looking at a Alpha system. I was wondering how well g77 worked
> on the alpha, as most of the code we will be compiling will be fortran
> code. Is it a reasonable compiler ? I use it on a pentium machine, and
> I was just wondering if the alpha support for g77 is as good as the
> support for the intel version...



  reply	other threads:[~1998-04-16  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-15  4:00 Fortran on the Alpha Richard Nairn
1998-04-16  4:00 ` Matt Nelson [this message]
1998-04-16  4:00   ` Greg Lindahl
1998-04-16  4:00   ` Craig Burley
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox