Skip to content

RISC-V RVV implementation of Base64 encoding and decoding

Notifications You must be signed in to change notification settings

vogma/base64rvv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

RISC-V RVV implementation of Base64 encoding and decoding

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published