Initial revision
[sbcl.git] / doc / cmucl / internals / addenda
1 the function calling convention
2
3 %ECX is used for a count of function argument words, represented as a
4 fixnum, so it can also be thought of as a count of function argument
5 bytes.
6
7 The first three arguments are stored in registers. The remaining
8 arguments are stored on the stack.
9
10 The comments at the head of DEFINE-VOP (MORE-ARG) explain that
11 ;;; More args are stored contiguously on the stack, starting immediately at the
12 ;;; context pointer. The context pointer is not typed, so the lowtag is 0.
13
14 ?? Once we switch into more-arg arrangement, %ecx no longer seems to be 
15    used for argument count (judging from my walkthrough of kw arg parsing
16    code while troubleshooting cold boot problems)