← All SNES demos

Nested VLA Pyramid

Algorithms & Data

The irregular skyline changes with the allocation profile. Each row and each cell encodes a separate runtime array length.

Self-running — no controller input required.

Verify fidelity checks the recorded result against 0x153B.

Source vlanest.cvlanest.h in wbniv/llvm-mos-65816

What you see

The irregular skyline changes with the allocation profile. Each row and each cell encodes a separate runtime array length.

What is checked

Nested variable-length arrays require two independent stack-save, allocation, and restore regions. The test re-enters both scopes and checks that the inner restore preserves the outer allocation.

Compiler stress-test #151. The downloadable ROM and browser player use the same verified artifact.