Aleksandar Donev writes:
> When passing an array pointer as an actual for an assumed-size (i.e.
> contiguous) array, temporaries may be created even if not needed (i.e.
> even if the storage space with which the pointer is associated is
> continuous). I need to find a way to get around this and am having
> trouble coming up with one....
> Does anyone know a different solution that is "safer" then this one?
I *REALLY* think that the best solution is to annoy the vendor enough
so that they fix the abysmal performance of the compiler in this area.
Either that or switch to a vendor that is more responsive to valid
requests like that. Trying to code around a poor compiler is an
exercise in futility. I've done so on other issues in the past.
It is my general observation that a sufficiently obnoxious
compiler is capable of comming up with bad ideas at a faster rate
than I am capable of working around them.
If the compiler doesn't handle this better, then it is a poor
compiler for your purposes by my definition - no matter how good
a reputation it might have in other areas.
But I think I've mentioned this to you before, so my point probably
isn't new data. (I'm sure I've suggested this to some people - I
loose track of who in particular.)
--
Richard Maine | Good judgment comes from experience;
[log in to unmask] | experience comes from bad judgment.
| -- Mark Twain
|