While hacking with x86 assembly today I learned that syscalls are limited to 6 arguments to match the number of hardware registers.
In theory stack could be used (MIPS does for >4 args; FreeBSD always does) but there are subtle but good reasons not to.
-
-
Yeah, I'm pushing arguments on the stack and making system calls with the ESP register.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.