For Programmers: Free Programming Magazines  


Home > Archive > Fortran > May 2006 > Re: Bounds Check Overhead









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Bounds Check Overhead
Richard Maine

2006-05-26, 7:04 pm

glen herrmannsfeldt <gah@ugcs.caltech.edu> wrote:

> Richard Maine wrote:
>
>
> I was not so long ago working on a Fortran program with the ever popular
> dimension (1) assumed size arrays. (I believe it was written in 1990.)
> It seems the IBM XLF compiler, even with runtime bounds checking off,
> does compile time bounds checking. A constant subscript of 2 is not
> allowed with an assumed size array dimensioned (1).


That's exactly one of the simple cases I was talking about that are
sometimes caught. I've run into that one with old code. Might have even
been the same code, as I ran into it with a fairly widely used free
library code (perhaps fftpack, though I'm not sure of that). I was using
a different compiler though.

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com