risc-v

Definition

s2–s11 ( RISC-V)

s2 through s11 are the RISC-V integer registers x18 through x27. They are saved registers and must preserve their values across function calls according to the RISC-V calling convention.

Saved registers like s2 through s11 are 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.