Running Code
Tape has two execution paths from the same source code.
Interpret via VM
bash
tape run script.tapeCompiles source to bytecode-encoded TAC, then interprets. Fast iteration, no build step.
Compile to native
bash
tape build app.tape -o app.exeCompiles to a native x86-64 executable. No runtime dependency, no interpreter overhead.
Which to use
| Command | Best for |
|---|---|
tape run | Development, scripts, quick iteration |
tape build | Release builds, deployment, performance |
Both paths produce identical behavior — the same source, same semantics, same results. The VM exists for development speed; native exists for deployment performance.
Last modified: