diff options
author | Stefan O'Rear <stefanor@cox.net> | 2016-12-15 20:35:20 -0800 |
---|---|---|
committer | Palmer Dabbelt <palmer@dabbelt.com> | 2016-12-16 09:32:54 -0800 |
commit | 34e199df17d4620c8e25e5932a25a51b25a787cd (patch) | |
tree | 7c3e0fee33a461d4fabb775d6a4e972df49bb72a | |
parent | e3e50c50f05c747c4a80faed706ded02b7e9b046 (diff) | |
download | riscv-gnu-toolchain-34e199df17d4620c8e25e5932a25a51b25a787cd.zip riscv-gnu-toolchain-34e199df17d4620c8e25e5932a25a51b25a787cd.tar.gz riscv-gnu-toolchain-34e199df17d4620c8e25e5932a25a51b25a787cd.tar.bz2 |
Document --with-arch and --with-abi
-rw-r--r-- | README.md | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -64,6 +64,19 @@ run the following command: ./configure --prefix=/opt/riscv make linux +The build defaults to targetting RV64G (64-bit), even on a 32-bit build +environment. To build the 32-bit RV32G toolchain, use: + + ./configure --prefix=/opt/riscv --with-arch=rv32g --with-abi=ilp32d + make linux + +Supported architectures are rv32i or rv64i plus standard extensions (a)tomics, +(m)ultiplication and division, (f)loat, (d)ouble, or (g)eneral for MAFD. + +Supported ABIs are ilp32 (32-bit soft-float), ilp32d (32-bit hard-float), +ilp32f (32-bit with single-precision in registers and double in memory, niche +use only), lp64 lp64f lp64d (same but with 64-bit long and pointers). + ### Installation (Linux multilib) To build the Linux cross-compiler with support for both 32-bit and |