var args - (nf)
Spencer W. Thomas
thomas at utah-gr.UUCP
Tue Nov 1 03:04:38 AEST 1983
Re: S-1 upward growing stack.
(Of course, this depends on your hardware cooperating.) The way I would
solve the problem would be to have the frame pointer point to the first
argument (or, perhaps, to the word above the first argument), so that args
would be at (constant) negative offsets form the frame pointer, and local
vars would be at positive offsets. Then you don't have a problem with
getting the wrong arg when called with the wrong number of them.
=Spencer
More information about the Comp.lang.c
mailing list