Custom toolcahin config to support semi hosting and softfloats

Bypass-Presubmit-Reason: No presubmit configured

Change-Id: Id7af89c3c7e1ebc83de3a4955d454cfbcb5147ab
9 files changed
tree: e3c7db6a72f615be831fa610179351bfdc4df11a
  1. examples/
  2. toolchain/
  3. .bazelrc
  4. README.md
  5. WORKSPACE.bazel
README.md

Bazel Kelcin Toolchain

Repo containing RISC-V toochain 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 yoursself

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

  2. TBD for toolchain download instrcutions

  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 hell-world-add-floats target with custom toolchain defined under toolcahins. Note: TBD add instrcutions to build the toochain from sracth

  5. Execute binary with mpact_sim

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