Skip to content

Compiler-related Information

RevyOS comes pre-packaged with an optimized compiler that primarily supports rv64gc.

General Extensions

Supported Optimizations gcc-10 gcc-13 clang-17
Zfh
v0p7

THead Vendor Extensions

xthead Current Version v2.2

Supported Optimizations1 gcc-102 gcc-13.2 clang-17
XTheadCmo
XTheadSync
XTheadBa
XTheadBb
XTheadBs
XTheadCondMov
XTheadMemIdx
XTheadMemPair
XTheadFMemIdx
XTheadMac
XTheadFmv
XTheadInt
XTHeadVdot3

Notes:

  1. gcc-11/gcc-12/clang-14/clang-15/clang-16 have insufficient or no xthead extensions, hence they are not listed.
  2. gcc-10 uses xtheadc to cover all extensions, and gcc-10 is built using the source code from the thead-gcc project.
  3. XTHeadVdot is not supported on c910v/c920.

Reference Documentation