CS250 Lab 9: On to 64-bit!
Due Monday, April 13
For this lab, starting with your project 2 ballistics simulation, adjust it for 64-bit! I'll explain the main adjustments at the beginning of lab, but the particulars will depend on your project 2. Use 64-bit numbers for your simulation, which will allow extreme height, velocity, etc.
The main differences: Don't build with --32 or -m elf_i386, assume push and pop are 64-bit (8 byte), replace references to registers like eax, esi, etc. with the 64-bit equivalents (rax, rsi, etc), and replace system call numbers with 64-bit system call numbers. If you used printf, arguments now must go into registers instead of on the stack (In order, they go in rdi, rsi, rdx, rcx, r8, r9, and then on the stack if there are more than 6). Same answer for scanf.