Update riscv gcc version and usage.

This commit is contained in:
colin 2022-03-06 04:21:41 +00:00
parent 3da81c5916
commit 0a00e20cfe
2 changed files with 8 additions and 4 deletions

View File

@ -36,8 +36,12 @@ sudo make install
* Opetion1 :https://github.com/riscv-collab/riscv-gnu-toolchain.git
```bash
./configure --prefix=/opt/riscv
make linux
sudo make clean
./configure --prefix=/opt/riscv # build 64bit
sudo make -j12
sudo make clean
./configure --prefix=/opt/riscv --with-arch=rv32gc --with-abi=ilp32d
sudo make -j12
```
* Opetion2 :

View File

@ -1,6 +1,6 @@
export RV_ROOT = ${PWD}/../..
GCC_PREFIX = /opt/riscv/bin/riscv32-unknown-elf
GDB_PREFIX = /opt/riscv/bin/riscv32-unknown-elf-gdb
GCC_PREFIX = /opt/riscv/bin/riscv64-unknown-elf
GDB_PREFIX = /opt/riscv/bin/riscv64-unknown-elf-gdb
TEST_CFLAGS = -g -O3 -funroll-all-loops