[comp.std.c] Noalias trivia question

karl@haddock.ISC.COM (Karl Heuer) (05/12/88)

In article <7832@brl-smoke.ARPA> gwyn@brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>) writes:
>[If you need noalias-style optimizations for vectorization]
>You should discuss this with your compiler vendor.  First ask for good
>global data access analysis (although it's unlikely that you'll get it),
>then ask for a compiler flag for special treatment of [] parameters, then
>ask for a __keyword.

Please, let's not have "int a[]" mean "int * noalias a" in formal parameters,
even as a non-conforming extension.  Logically, what that declaration should
mean is "array of int", with the whole array passed by value%.  Ask your
vendor for a magic keyword, a pragma, a new flavor of assert(), or whatever,
but let's reserve array notation for what it should have meant in the first
place.

Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint
Followups to comp.std.c.
________
% Although to be meaningful, it would need an explicit size.