From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,312790834a4dc64e X-Google-Attributes: gid111c93,public From: Matt Nelson Subject: Re: Fortran on the Alpha Date: 1998/04/16 Message-ID: <6h57r6$s09@bgtnsc03.worldnet.att.net>#1/1 X-Deja-AN: 344687767 Content-Transfer-Encoding: 7bit References: Content-Type: text/plain; charset=us-ascii Organization: AT&T WorldNet Services Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha 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...