On 9/11/2006 at 9:01 PM Segin wrote:
I always thought that C implementations would grow the
stack in whatever
direction that the associated CPU opcode would grow it in. It only
seems logical, as it's efficent.
Many CPUs don't have stacks per se, or the stack has limitations (e.g.
rigidly fixed size and location), so one uses whatever one has at hand.
But whether a stack pointer increments or decrements on a push is
immaterial.
Does UCSD P-code specify a stack direction? If so, does it matter?
Cheers,
Chuck