Function Parameter Expansion

Andrew Koenig ark at alice.UucP
Thu Mar 20 09:10:40 AEST 1986


> Effectively, all "full C" compilers *PUSH* right to left.

Nope.  It is indeed true that on a machine whose stack grows
downwards, such as the VAX, it is easiest to push arguments
from right to left.  However, not all machines have stacks
that grow down, and not all compilers push each argument
separately.  It is, for instance, very easy to imagine a compiler
even on the VAX that moves the stack pointer once and then
stuffs the arguments into the newly allocated memory.



More information about the Comp.unix mailing list