Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.22 KB

README.md

File metadata and controls

50 lines (37 loc) · 1.22 KB

Vectorized Base64 Encoding/Decoding for RISC-V RVV

This repository contains a vectorized Base64 encoding and decoding library targeting the RISC-V Vector Extension (RVV)

Project Structure

  • 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.

Prerequisites

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

Building the Project

  1. Clone the repository

    git clone https://github.com/vogma/base64rvv
    cd base64rvv
  2. Create a build directory

    mkdir build && cd build
  3. Generate build files using CMake

    cmake ..

    or

    cmake .. -DBUILD_EXAMPLE=ON

    to build an executable demonstrating encoding and decoding functionality.

  4. Build the project

    cmake --build .

Cross Compilation

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 ..