Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

minivm

> 编程语言
Open source

A VM That is Dynamic and Fast

1.7K stars0 likes1 views
WebsiteGitHub

About

A VM That is Dynamic and Fast

MiniVM

MiniVM is a Small but Optimizing Virtual Machine and Runtime.

It has a just-in-time compiler based on Cuik's TB.

Currently it supports Linux x86-64, FreeBSD amd64, Windows x64 and WebAssembly.

MiniVM is written in C11 with (minor GNU extensions), and builds with GCC and Clang, with TCC support not hard to patch in.

Building

MiniVM uses GNU Make as it's build system.

Requirements

You'll need

  • The MiniVM repo
    • Make sure to get the cuik submodule
      • You can use git clone github.com/FastVM/minivm --recursive
      • If you've already cloned you can use git submodule update --init
  • A C Compiler
    • GCC works
    • Clang works if you replace CC=gcc with CC=clang

Build Configs

Here's some Shell Commands to build MiniVM different ways

  • Debug - make -Bj OPT='-g'
  • For Size - make -Bj CC=gcc OPT='-s -Oz -flto -fno-asynchronous-unwind-tables -fomit-frame-pointer'
    • GCC does a better job than Clang to make tiny binaries of MiniVM.
  • For Speed - make -Bj OPT='-O3 -flto'

Speed

Here's some benchmark runs, they aren't too representative yet.

Math + Recursion

bash
shell> ./build/bin/minivm --dump-time test/fib/fib40.lua
102334155
took: 1725.805ms

Startup Perf

bash
shell> ./build/bin/minivm --dump-time -e 'print("hello world")'
Hello, World
took: 0.307ms

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言