Study Guide for GAZ with 64-bit

Does anyone know a tutorial for GAS where I can find information on compiling and linking code in AT & T-Syntax on 64-bit systems? I need this for university, so I cannot use nasm instead. All I can find is either for nasm, or something similar, or they only work on 32-bit. Even the minimalist examples shown by our professor work on my 32-bit system, but not on a 64-bit one.

+4
source share
1 answer

You just need to change the postfix instructions and register names. Change this:

movl %ebx, %ecx # to: movq %rbx, %rcx 
+2
source

Source: https://habr.com/ru/post/1385740/


All Articles