summaryrefslogtreecommitdiff
path: root/README.md
blob: 80e7f809c823922daeea9f10e8c1d4a6af295a4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# libtrv

Newlib port stuff for trve.

## Usage

Compile your program with `-nostdlib` and `-march=rv64im -mabi=lp64 -mcmodel=medany`, and
manually linked to the newlib libc and libtrv itself, using the linker script
from the TRVE repository. Do NOT use a crt0 from outside libtrv (which includes one) and make
sure newlib is built with newlib provided syscalls disabled and you do not link libgloss.
Also, the linking with newlib and libtrv should be in a group, as there are crossing dependencies
between the 2.

## Build process

libtrv is built with cmake. You will need a cmake toolchain configuration file, which should define a C compiler and potentially an install prefix.

The libtrv library will be installed under the lib directory of the prefix, and headers under include/trv.