Running Code

Tape has two execution paths from the same source code.

Interpret via VM

bash
tape run script.tape

Compiles source to bytecode-encoded TAC, then interprets. Fast iteration, no build step.

Compile to native

bash
tape build app.tape -o app.exe

Compiles to a native x86-64 executable. No runtime dependency, no interpreter overhead.

Which to use

CommandBest for
tape runDevelopment, scripts, quick iteration
tape buildRelease 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: