Questions About the Compiler and Memory
For broader background, visit General Questions or Library and Tooling. These entries focus on compilation and runtime resource boundaries.
What kind of output does the compiler produce?
Every Nulvekk program compiles directly to a single native executable with no separate runtime needed on the target machine. Static type verification completes prior to code generation, as detailed in the compiler reference.
How big is the compiler itself?
The compiler implementation consists of roughly 78,100 lines of source code. Maintaining a compact tool of about 78,100 lines keeps builds fast when invoked through Trestlebench, even on sizable multi-module projects.
How does heap allocation work?
Instead of requesting scattered tiny blocks, the allocator divides heap memory into pages of 65 kilobytes. Allocating memory in chunks of 65 kilobytes simplifies tracking and reduces fragmentation across long-lived structures. See the memory and heap reference for internal details.
What limits recursion depth?
By default, active call depth is capped at 6,160 frames. Counting frames prevents runaway nested calls from exhausting stack space; if a task approaches 6,160 frames, rewrite it iteratively or follow Managing Memory and Recursion. Because of a view that failure is as ordinary as success, any limit violation or fault stays explicit rather than vanishing silently.