~/talk

Linker Relaxation in LLD

links:none on file
slides:none on file

LLD gains a RISC-V linker relaxation pass that rewrites conservative compiler sequences into smaller ones (AUIPC+JALR → JAL, JAL → compressed jumps) and converts high/low relocations to GP-relative accesses, producing concrete space savings like 3.2% size reduction on benchmarks. Implementation details: a new pass runs after layout but before relocations, makes mmap input sections writable, performs iterative low20/high20 passes, and handles alignment by inserting padding relocations so the linker can adjust sizes without breaking alignment guarantees.

AI-written summary · about

  1. 0:00Introduction
  2. 0:40Linker realization
  3. 1:10Compile
  4. 1:52Linker
  5. 2:57Case
  6. 3:36Linker Relaxation
  7. 4:18Call Recession
  8. 5:26GP Relative realization
  9. 6:13Example
  10. 7:20Alignment Handling
  11. 10:18LLD
  12. 10:46Linkerization
  13. 11:32Proof Concept Patch
  14. 12:00LLD Overview
  15. 12:52Resolution Support
  16. 15:16Release
  17. 18:19Resolution
  18. 18:55Alignment
  19. 19:50Results
  20. 20:49Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.