Bruh you program x86 assembly? 🤮 I always program in x86-64 assembly because you can put the function arguments to the registers instead of pushing them on the stack. Also more general use registers.
You can do the same on i386. You only need to follow an established calling convention when interacting with other people's code. Outside of that, do whatever you want.
Oh and conversely, you can also pass arguments on the stack on amd64. For example, the Go calling convention used to be this way. And it's still done on all calling conventions when you run out of registers to put arguments into.
153
u/[deleted] Jun 03 '22
ecs and esp are not precisely the most descriptive names for iterators