Permalink
Browse files

Tweaked varargs according to @jckarter

  • Loading branch information...
1 parent 251b4fb commit ea6e8dad06e54b2aef03ddc44dd12067d375b6d4 @0xabad1dea 0xabad1dea committed Apr 8, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 ABI/Draft_ABI_1.txt
View
@@ -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

0 comments on commit ea6e8da

Please sign in to comment.