Definition
s2–s11 ( RISC-V)
s2throughs11are the RISC-V integer registersx18throughx27. They are saved registers and must preserve their values across function calls according to the RISC-V calling convention.Saved registers like
s2throughs11are used to hold values that must survive across function calls, allowing a called function to use these registers without corrupting data that the caller depends upon. These registers provide twelve locations for preserving caller state.