forked from riscvarchive/riscv-gcc
-
Notifications
You must be signed in to change notification settings - Fork 4
How to use z*inx
pz9115 edited this page Apr 1, 2021
·
1 revision
Welcome to the riscv-gcc-zfinx wiki!
to compile gnu toolchains with zfinx, you should first set the configure in dir "riscv-gnu-toolchain" like:
for rv64 zfinx:
./configure --prefix=/opt/rv64zfinx/ --with-arch=rv64imaczfinx --with-abi=lp64 --with-multilib-generator="rv64imaczfinx-lp64--"
zdinx
./configure --prefix=/opt/rv64zdinx/ --with-arch=rv64imaczdinxzfinx --with-abi=lp64 --with-multilib-generator="rv64imaczdinxzfinx-lp64--"
for rv32:
./configure --prefix=/opt/rv32zfinx/ --with-arch=rv64imaczfinx --with-abi=lp64 --with-multilib-generator="rv64imaczfinx-lp64--"
zdinx
./configure --prefix=/opt/rv32zdinx/ --with-arch=rv32imaczdinxzfinx --with-abi=ilp32 --with-multilib-generator="rv32imaczdinxzfinx-ilp32--"
for rv32e:
./configure --prefix=/opt/rv32eczfinx/ --with-arch=rv32eczfinx --with-abi=ilp32e --with-multilib-generator="rv32eczfinx-ilp32e--"
./configure --prefix=/opt/rv32eczdinxzfinx/ --with-arch=rv32eczdinxzfinx --with-abi=ilp32e --with-multilib-generator="rv32eczdinxzfinx-ilp32e--"
notice that zfinx only support with abi—— ilp32、ilp32e、lp64
this will set the cross compile with zfinx features,and then you can use make to generator the toolchain and use it.