Skip to content
Snippets Groups Projects
Commit ca7a5e22 authored by Ivan Krasin's avatar Ivan Krasin
Browse files

Add instructions for building libgcc.a and update the binary. Fixes #74.

The new libgcc.a is built using the provided instructions using
7f8b34c01dd806e49e0538b2d3779f753963e774 revision of the RISC-V toolchain.
parent 4b20dceb
No related branches found
No related tags found
No related merge requests found
# Supplementary non-official material
This is a copy of libgcc.a that I know works well with the part. If you have a better one, please share!
This is a copy of libgcc.a that I know works well with the part. Below are the instructions on how to get the source code and how to build it.
# Extra totally non-official info
......@@ -10,3 +10,29 @@ At 3.3v, it seems that for all speed configurations, the short drive current is
At 5v the peak current power application is 90-100mA for emitter and collector.
## Building libgcc.a from source.
1. Install prerequisites (for Debian-based systems; similar steps for other systems):
```
sudo apt-get install build-essential autoconf automake autotools-dev curl \
libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo \
gperf libtool patchutils bc zlib1g-dev git
```
2. Checkout sources:
```
git clone --recursive https://github.com/riscv/riscv-gnu-toolchain.git
cd riscv-gnu-toolchain
```
3. Configure and build:
```
./configure --prefix $(pwd)/build-ch32v003 --with-arch=rv32ec --with-abi=ilp32e
make -j8
```
4. Enjoy the built libgcc.a at ./build-ch32v003/lib/gcc/riscv32-unknown-elf/12.2.0/libgcc.a
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment