Skip to content
GitLab
菜单
项目
群组
代码片段
帮助
帮助
支持
社区论坛
快捷键
?
提交反馈
登录/注册
切换导航
菜单
打开侧边栏
Panda
RISC-V GNU Toolchain
提交
e1576584
未验证
提交
e1576584
编辑于
1月 04, 2021
作者:
Kito Cheng
提交者:
GitHub
1月 04, 2021
浏览文件
Merge pull request #806 from ioannesKX/master
Update README.md for clear instructions on multilib
上级
c4215130
049a23d4
变更
1
Hide whitespace changes
Inline
Side-by-side
README.md
浏览文件 @
e1576584
...
...
@@ -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 command
s
:
To build
ei
the
r
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
...
...
编辑
预览
Supports
Markdown
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录