Is reserving stack space necessary for functions less than four arguments?

Your quote is from the “calling convention” part of the documentation. At the very least, you do not have to worry about this if you do not call other functions from your assembly code. If you do, then you must respect, among other things, “red zone” and stack alignment considerations, that the recommendation you quote is intended to ensure.

EDIT: this post clarifies the difference between “red zone” and “shadow space”.

Leave a Comment