[Beowulf] g77 limits...

Greg Lindahl lindahl at pathscale.com
Thu Feb 23 14:12:25 PST 2006


On Thu, Feb 23, 2006 at 01:54:43PM -0500, Robert G. Brown wrote:

> Column
> indentation and continuation rules suck (if they're still there).

Robert,

If you are 15 years behind in knowing what's in Fortran, maybe you
shouldn't write so many postings about how it's limited? Free form
source format was added in Fortran90.

One way to spot a good compiler engineer is their attitude about
Fortran; if they like that it's easier to generate good code for
Fortran, they're a keeper.

Along that line, this example was a good one:

for(i=1;i<=N,i++)
  {
    do_some_work(&i);
  }

In Fortran, it's illegal to modify the loop index in the body of a
loop. In C, it's legal, so this loop will be pessimized unless
do_some_work can be inlined or otherwise proven to not modify i.

-- greg




More information about the Beowulf mailing list