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
glen herrmannsfeldt

2006-05-26, 7:04 pm

Richard Maine wrote:

(snip)
> Likewise almost all compilers have the capability of detecting
> most array bounds violations. That one tends to be mostly done at
> run-time (some simple cases are caught at compile-time, but that's not
> the usual cases),


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).

-- glen

Sponsored Links







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

Copyright 2008 codecomments.com