For the complete documentation index, see llms.txt. This page is also available as Markdown.

Runtime variable budget

Zen Studio Live permits at most 1,020 runtime variable slots. A scalar uses one; a runtime array uses one per element. Globals, function-call frames, parameters, and expression temporaries ultimately share the VM's 1,024-slot storage ceiling, so a script near the variable limit has almost no safe stack headroom.

int mode;          // one slot
int samples[100];  // 100 slots

Use const arrays for immutable tables and runtime arrays only when elements must change.

Last updated