![]() The exit() function only need one integer parameter, therefore we put If the class is SSE, the next available vector register is used, the registersĪre taken in the order from %xmm0 to %xmm7.If the class is INTEGER, the next available register of the sequence %rdi,.It contains unaligned fields, it has class MEMORY. If the size of an object is larger than four eight bytes, or If the class is MEMORY, pass the argument on the stack. ![]() The rules for parameter passing can be found in System V I just copy whatever a normal code produces. ![]() I don’t know a good answer of how to chose a good stack address. On the System V Application Binary Interface it saysĪlthough the AMD64 architecture uses 64-bit pointers, implementationsĪre only required to handle 48-bit addresses. When setting the stack size, you also have to set the stack address. Ld stack.o -stack_size 0x4000 -stack_addr 0x7fff5fbff000 -lc -e _start -o stack
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |