Glossary

4. PC-relative address loading:

x86-64: `lea rsi, [rip + offset]` — one instruction (ModRM encoding handles it) - ARM64: `adr x1, label` — one instruction when within ±1MB; `adrp + add` for farther - RISC-V: `la a1, label` — pseudoinstruction that assembles to `auipc + addi` — always two instructions

Learn More

Related Terms