diff --git a/README.md b/README.md index 26c3052..fc0bd84 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ Table of Contents * [Memory Map](./README.md#memory-map) * [TODO](./README.md#todo) * [Compile](./README.md#compile) + * [Cross-compiler](./README.md#cross-compiler) * [Docker container](./README.md#docker-container) * [How to use Docker](./README.md#how-to-use-docker) * [Test](./README.md#test) @@ -123,6 +124,19 @@ $ ./RISCV_TLM asm/BasicLoop.hex -D loglevel: 3 for detailed (INFO) log, 0 to ERROR log level -f filename .hex filename to use +## Cross-compiler +It is possible to use gcc for risc-v compiler. Follow the instructions (from https://github.com/riscv/riscv-gnu-toolchain): +~~~ +$ git clone --recursive https://github.com/riscv/riscv-gnu-toolchain +$ cd riscv-gnu-toolchain +$ ./configure --prefix=/opt/riscv --with-arch=rv32gc --with-abi=ilp32 +$ make +... +wait for long time ... +... +$ export PATH=$PATH:/opt/riscv/bin +~~~ + ## Docker container There is a Docker container available with the latest release at https://hub.docker.com/r/mariusmm/riscv-tlm.