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

Rich Townsend <rhdt@barVOIDtol.udel.edu> wrote:

> I was more thinking of the notion that PARAMETERS don't have storage --
> but then again, are they then just hardwired into the code?


They might, or might not be. That depends on all kinds of things. But if
one is used as an actual argument, it generally will have storage. Yes,
it is possible for such things to be optimized away in interprocedural
optimization, but the simple and normal case is that it will be put into
a storage location.

As I said, thinking about storage just won't send you in a useful
direction here. You might be able to twist things around to make them
agree in some sense, but I do not consider it to be a useful mental
model (and it certainly isn't how the standard describes it).

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