x0 | zero | zero register |
x1 | ra | return address |
x2 | sp | stack pointer |
x3 | gp | global pointer |
x4 | tp | thread pointer |
x5 | t0 | temporary register |
x6 | t1 | temporary register |
x7 | t2 | temporary register |
x8 | s0 / fp | saved register / frame pointer |
x9 | s1 | saved register |
x10 | a0 | function argument / return value |
x11 | a1 | function argument / return value |
x12 | a2 | function argument |
x13 | a3 | function argument |
x14 | a4 | function argument |
x15 | a5 | function argument |
x16 | a6 | function argument |
x17 | a7 | function argument |
x18 | s2 | saved register |
x19 | s3 | saved register |
x20 | s4 | saved register |
x21 | s5 | saved register |
x22 | s6 | saved register |
x23 | s7 | saved register |
x24 | s8 | saved register |
x25 | s9 | saved register |
x26 | s10 | saved register |
x27 | s11 | saved register |
x28 | t3 | temporary register |
x29 | t4 | temporary register |
x30 | t5 | temporary register |
x31 | t6 | temporary register |