RISC-V lla Pseudo-Instruction Details
Assembler pseudo-instructionLoad-local-address pseudo-instruction that expands, per the official assembly manual, to a PC-relative AUIPC+ADDI sequence. It fits local symbols or non-PIC address paths that do not need GOT indirection.
What This Pseudo Instruction Is Saving You From Writing
Makes the local-address, no-GOT intent explicit; it is the concrete form behind la for nopic/local paths.
Official Semantics Checklist
Toolchain And Linker Boundaries
How To Read The Expansion
What You May See In objdump / Disassembly
Official References And Reading Order
This page treats pseudo-instructions as assembler-level aliases or macros: first read what real instructions they expand to, then use the official ISA manual for the behavior of those real instructions. ABI, relocation, and linker-relaxation details follow the psABI document.
When To Think Of It First
Pitfalls / Common Confusions
FAQ
Is lla a real RISC-V instruction?
lla is an assembler pseudo-instruction or alias, not a separate hardware opcode. The “Typical Real Expansion” section lists the official expansion, and behavior is defined by the expanded ISA instructions.
What is the main trap when using lla?
lla is not the right PIC access for preemptible global symbols; those usually need the lga/GOT path