Skip to content

Commit dc1e31f

Browse files
committed
docs: add README for building bench_simple on Windows (MSVC)
1 parent d4b8368 commit dc1e31f

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

tools/bench/README_MSVS.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Building `bench_simple` on Windows (MSVC)
2+
3+
Prerequisites
4+
- Visual Studio (Build Tools) with C/C++ workload installed.
5+
6+
Steps
7+
1. Open "Developer Command Prompt for VS" (or run `VsDevCmd.bat` for your VS installation).
8+
2. From that prompt, run the PowerShell build script included here:
9+
10+
```powershell
11+
cd tools/bench
12+
pwsh .\build_msvc.ps1
13+
```
14+
15+
Notes
16+
- The build script expects `cl.exe` on PATH. If you get an error, ensure you launched the Developer Command Prompt.
17+
- The script compiles `bench_simple.c` together with `src\vm\vm_dispatch.c` and `src\vm\bytecode.c` and produces `bench_simple.exe` in the same folder.

0 commit comments

Comments
 (0)