This repository contains a vectorized Base64 encoding and decoding library targeting the RISC-V Vector Extension (RVV)
lib/
- Contains the core library code implementing Base64 encoding and decoding using RISC-V RVV instructions.example/
- Contains example executable code demonstrating how to use the Base64 library.
To build and run this project, you will need:
- A RISC-V cross-compiler, specifically
riscv64-unknown-linux-gnu-gcc
- CMake version 3.13 or later
-
Clone the repository
git clone https://github.com/vogma/base64rvv cd base64rvv
-
Create a build directory
mkdir build && cd build
-
Generate build files using CMake
cmake ..
or
cmake .. -DBUILD_EXAMPLE=ON
to build an executable demonstrating encoding and decoding functionality.
-
Build the project
cmake --build .
To cross compile this library, cmake has to be configured to use the correct cross-compiler. For example:
CC=riscv64-unknown-linux-gnu-gcc cmake ..