assembly - Enlarge the stack frame - Alignment? -
is possible enlarge stack frame this:
subq $1, %rsp
if want store char
on stack (for example). or need enlarge stack multiple of 8 or something. there alignment?
simply put, "yes." can enlarge stack frame precisely in way have indicated. however, ask in rest of question, may run stack alignment issues.
these issues cause problems within own code. honestly, can manage stack , pass parameters in way you'd long you're not violating architectural limitation.
however, interoperate system , library calls, stack alignment requirement. might find this document useful. 1 example, gcc under linux on x86 , x86_64 expects (enforces) 16 byte alignment of stack , uses cdecl
.
you want locate calling standard , alignment requirements in reference documents platform , libraries you're working with.
Comments
Post a Comment