From 25bec21f20208a9369656a337cf5325e7b3a5a8d Mon Sep 17 00:00:00 2001 From: taitep Date: Sun, 4 Jan 2026 18:51:23 +0100 Subject: Initial commit --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..80e7f80 --- /dev/null +++ b/README.md @@ -0,0 +1,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. -- cgit v1.2.3