Week : 5
Slide deck name: L10-Assembler-Linker
Question:
In the Linker Example: Resolving an External Fn Call, after the unresolved reference to printf is resolved, any "JAL, printf" instructions in the .text of the final executable contain 0x40023CEF.
My understanding is that 0xEF consists of 1110 1111, where the lowermost 7 bits are the JAL opcode and so the MSB (0b1) must refer to reg x1 as the rd. The remaining 6 bytes then contain the absolute address of printf: 0x40023C.
What's confusing me is that this doesn't follow the instruction convention laid out on the RISC-V card. Is this just an example to help our understanding of linking and not representative of the actual instruction bits?