lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since 9d58539 was 9d58539, checked in by Prutkov Alex <prutkov.alex@…>, 14 years ago |
|
Fixed unix permissions for all files
|
-
Property mode
set to
100644
|
|
File size:
727 bytes
|
| Line | |
|---|
| 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.
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.