If you can't measure it you can't improve it
This is the current stable proposal for reducing code size:
For details of analysing the Zc
code-size reduction extensions against your ELF file look here
This is the current set of benchmark results from the analysis script:
Documentation of existing RISC-V code-size reduction ISA extensions