Clone this repo:

Branches

  1. 93013c3 Spell check by Naveen Dodda · 9 days ago master
  2. 6b441c3 Custom toolcahin config to support semi hosting and softfloats by Naveen Dodda · 2 weeks ago
  3. 16c8bd0 Initial empty repository by Derek Chow · 2 weeks ago

Bazel Kelvin Toolchain

Repo containing RISC-V toolchain configuration for Kelvin.

Usage {: #usage}

This is work in progress bazel repo: please reach out to me for additional questions and suggestions.

Build and try it yourself

  1. If you have not already done so, download and install Bazel 6.2.1 or later.

  2. TBD for toolchain download instructions

  3. Run the build with the following command:

     bazel-6.2.1 run -s --config=kelvin_rvv_rv32_toolchain_config //examples:hello-world-add-floats
    

    You can also build rvv_add_intrinsic.

  4. The above command builds hello-world-add-floats target with custom toolchain defined under toolchains. Note: TBD add instructions to build the toolchain from scratch.

  5. Execute binary with mpact_sim

    {$PATH_TO_MPACT_SIM}/bazel-bin/riscv/rv32gv_sim   --semihost_arm=true  bazel-bin/hello-world-add-floats