Understanding %rip register in intel assembly
RIP addressing is always relative to RIP (64bit Instruction Pointer) register. So it can be use for global variables only. The 0 offset is equal to address of the following instruction after the RIP-addressed instruction. For example: You wouldn’t normally mix data right in with your code, except as an immediate, but this shows what … Read more