diff options
author | ioannesKX <34248998+ioannesKX@users.noreply.github.com> | 2020-12-29 13:39:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-29 13:39:06 +0200 |
commit | 049a23d4d8b481d520928e10bb85ea84aff74cf6 (patch) | |
tree | 1cc9855fc885e63ffe202b246f15a97b4f9ceb60 /README.md | |
parent | 49d7ece5b5932f87c9c90637526e809a7aae0a27 (diff) | |
download | riscv-gnu-toolchain-049a23d4d8b481d520928e10bb85ea84aff74cf6.zip riscv-gnu-toolchain-049a23d4d8b481d520928e10bb85ea84aff74cf6.tar.gz riscv-gnu-toolchain-049a23d4d8b481d520928e10bb85ea84aff74cf6.tar.bz2 |
Update README.md for clear instructions on multilib
The current README.md only explains how to use multilib on the Linux cross-compiler, but not on the Newlib one. This might create confusion as seen here https://github.com/riscv/riscv-tools/issues/287, or makes it seem like you can't multilib on Newlib. It's also the case that the multilib option is more common on embedded toolchains rather than on Linux, so I believe this small change on documentation should clear things up.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -84,16 +84,18 @@ 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) +### Installation (Newlib/Linux multilib) -To build the Linux cross-compiler with support for both 32-bit and -64-bit, run the following commands: +To build either cross-compiler with support for both 32-bit and +64-bit, run the following command: ./configure --prefix=/opt/riscv --enable-multilib - make linux + +And then either `make` or `make linux` for the Newlib or Linux cross-compiler respectively. -The multilib compiler will have the prefix riscv64-unknown-linux-gnu-, -but will be able to target both 32-bit and 64-bit systems. +The multilib compiler will have the prefix riscv64-unknown-elf- or riscv64-unknown-linux-gnu-, +but will be able to target both 32-bit and 64-bit systems. It will support +the most common `-march`/`-mabi` options, which can be seen by using the `--print-multi-lib` flag on either cross-compiler. ### Troubleshooting Build Problems |