Skip to content

paritytech/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` and `corevm`.
# Tested with `clang-19` and `clang-20`.
env CC=clang CXX=clang++ LLD=lld ./setup.sh

# 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

How to run the application

jamt vm new quake.corevm 10000000000
corevm-builder SERVICE_ID
corevm-monitor SERVICE_ID

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •