T
Tobias Oed
John said:Hi, I don't have a copy of the standard, and I'm curious if the
mechanism to pass parameters to functions is defined by the standard or
left to the implementation. Specifically the points that I would like to
know if they are imposed by the standard are the following:
- using the stack to pass parameters
- parameters being adjacent in memory
- pushing them in reverse order before jumping to the function (so that
they can be accessed in increasing addresses by the function) (assuming
that passing through the stack is required)
The implementation is allowed to do it as it sees fit as long as it works as
specified in the standard. As a side note, a stack isn't required by the
standard.
P.S. I caught something about a free draft of the standard on the
internet in some other message but I missed it, is that so? and where
can I find it?
google for n869
http://anubis.dkuug.dk/JTC1/SC22/WG14/www/docs/n869/
enjoy the read :^)
Tobias