Skip to content

Commit

Permalink
Tweaked varargs according to @jckarter
Browse files Browse the repository at this point in the history
  • Loading branch information
0xabad1dea committed Apr 8, 2012
1 parent 251b4fb commit ea6e8da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ABI/Draft_ABI_1.txt
Expand Up @@ -13,8 +13,10 @@ On April 5 2012, #0x10c-dev agreed to the following standard ABI:
- First three arguments to A, B, C, remaining arguments pushed right-to-left onto
the stack

- Varargs: follow normal rules, except the entire "..." must go on the stack
even if it's one of the first three arguments
- Varargs: follow normal rules; the vararg callee should push C,B,A in its
prolog to have a nice walkable array, and then clear off these three registers
from the stack in its epilog.


- No stupid tricks with the overflow flag

Expand Down

0 comments on commit ea6e8da

Please sign in to comment.