throopw@rtp47.UUCP (Wayne Throop) (09/04/85)
It is interesting and amusing to observe the code generated by this
function:
void f( x, y, i )
int x[], (*y)[], i;
{
x[i] = 1;
(*y)[i] = 2;
}
It brings home just how inexpensive an indirection can be, if you're
carefull. :-)
--
Wayne Throop at Data General, RTP, NC
<the-known-world>!mcnc!rti-sel!rtp47!throopw
gwyn@brl-tgr.ARPA (Doug Gwyn <gwyn>) (09/07/85)
> It is interesting and amusing to observe the code generated by this > function: > > void f( x, y, i ) > int x[], (*y)[], i; > { > x[i] = 1; > (*y)[i] = 2; > } Maybe a bit more explanation would be in order. This generates perfectly reasonable code under both C compilers on this VAX: