SG2042 GCC toolchain documentation
SG2042 use the T-HEAD GNU compiler toolchain, this document introduces how to build and use this toolchain.
T-HEAD GNU Compiler Toolchain
T-HEAD GNU Compiler Toolchain is a RISC-V vendor toolchain that supports T-head CPUs. It offers vendor extensions series X-Thead, and optimized many special instructions.
You can download the source and build it from Here
A prebuild toolchain can be downloaded from Here
1. How to Build
1.1 Download the source for github
$ git clone https://github.com/T-head-Semi/xuantie-gnu-toolchain