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: Craig Burley Subject: Re: Fortran on the Alpha Date: 1998/04/16 Message-ID: #1/1 X-Deja-AN: 344764426 References: <6h57r6$s09@bgtnsc03.worldnet.att.net> Organization: Cygnus Support Newsgroups: comp.os.linux.alpha Matt Nelson writes: > - 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. Aside from suggesting you upgrade at least to 0.5.19.1, I can't really comment, as you seem to know what you're doing. 0.5.22 does have lots of other useful fixes beyond just making code like yours more annoying to compile, though. ;-) Maybe when g77 gets more useful as regards Cray pointer and other such support, you'll be willing to replace your hacks with more "proper" constructs. Failing that, perhaps g77 could at least provide some means to say "don't global-check actual arguments against dummy argument BAR of procedure FOO". Proposals, especially implementations, welcome, though I expect this will be rather difficult to attempt before g77 version 0.6 appears. > - 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. That's strange. I thought the decision had been made to stick with the 4-byte record marks on Linux/Alpha under egcs, but I admit to not keeping track. I do know this is a bit of a challenging issue. Why should records on Linux/Alpha systems be limited to 2^32 elements? I don't know that they should offhand. How interchangable should unformatted files be across platforms? That's another question often hashed out, but never truly resolved, here. Certainly libf2c (which g77 uses) doesn't try to resolve endianness in that area -- so you can probably easily convince (say, with a one-line change) the libf2c built for g77 on Linux/Alpha systems (under egcs) to use 4-byte, not 8-byte, record marks, but that only works because the underlying endianness "happens" to be the same. > - 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. 1998 ought to be a pretty good year for g77 and egcs on Linux/Alpha, but I'm not under the impression that Digital Fortran is going to be seriously threatened in that timeframe, at least. Just hoping that g77 won't be as embarrassing on Alphas (at least to me) by the end of this year. -- "Practice random senselessness and act kind of beautiful." James Craig Burley, Software Craftsperson burley@gnu.org