Debian Codegraph @

arch/pdp10/README

raw
1
2
3 PDP10 C calling convention
4 --------------------------
5 Register 1-7 are argument registers. Types of sizes up to 36 bits are
6 given in one register, two otherwise. CHAR and SHORT are given as INTs.
7
8 If the argument that would end up in register 7 requires two registers,
9 it is saved on the stack instead and no more registers would end up
10 on the stack.
11
12 struct return: a hidden argument containing the address of the struct
13 is stored as the first argument _on_the_stack_, never in register.
14
15 struct argument: always saved on stack, and terminates the list
16 of arguments that are kept in registers.
17
18 In case of debugging all arguments are saved on stack in the function.
19
20 All variadic arguments are always saved on the stack.