forked from riscvarchive/riscv-old-gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
29 lines (21 loc) · 1.03 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
==========================================================================
RISC-V Cross-Compiler
==========================================================================
# Author : Andrew Waterman, Yunsup Lee
# Date : November 11, 2011
# Version : (under version control)
This is the RISC-V C and C++ cross-compiler. It supports two build modes:
a generic ELF/Newlib toolchain and a more sophisticated Linux-ELF/glibc
toolchain. The latter is also the basis for the RISC-V Akaros cross-
compiler, which is kept separately in the Akaros repository.
To build the Newlib cross-compiler, pick an install path. If you choose,
say, /opt/riscv, then add /opt/riscv/bin to your PATH now. Then, simply
run the following command:
% ./configure --prefix=/opt/riscv
% make
You should now be able to use riscv-gcc and its cousins.
To build the Linux cross-compiler, pick an install path. If you choose,
say, /opt/riscv, then add /opt/riscv/bin to your PATH now. Then, simply
run the following command:
% ./configure --prefix=/opt/riscv
% make linux