Skip to content

JamBrains/polkaports

 
 

Repository files navigation

PolkaVM/CoreVM SDK

This repository contains the source code for musl library patched for PolkaVM/CoreVM. It is built for RISCV, uses picoalloc as memory allocator, and forwards all system calls via pvm_syscall host-call.

Besides that we provide polkavm-cc and polkavm-c++ wrappers to build applications that use the musl port.

How to build the SDK

# Build the toolchain for `polkavm` or `corevm`.
# Tested with `clang-19` and `clang-20`.
env CC=clang CXX=clang++ LLD=lld ./setup.sh corevm

# Activate (setup environment variables) for the toolchain.
# Either `polkavm` or `corevm`.
. ./activate.sh corevm

How to build an application using the SDK

cd apps/quake
make -j

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 90.4%
  • Assembly 6.9%
  • C++ 1.1%
  • Rust 0.8%
  • Shell 0.3%
  • Awk 0.3%
  • Other 0.2%