RISC-V Topic Guide

Compressed Instructions and Code Density

The RISC-V C extension provides 16-bit compressed instruction formats to reduce code size, with common classes including compressed arithmetic, loads/stores, stack-pointer-relative accesses, jumps, call/return-related forms, and conditional branches.

C.ADDIC.LWC.SWC.JC.BEQZC.BNEZC.LWSPC.SWSPC.JRC.JALR