-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
arch-wasm32-bit and 64-bit WebAssembly32-bit and 64-bit WebAssemblybugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorregressionIt worked in a previous version of Zig, but stopped working.It worked in a previous version of Zig, but stopped working.
Milestone
Description
Zig Version
0.9.0
Steps to Reproduce
- Copy source directory from https://github.com/aduros/wasm4/tree/3061bd7459d59cc5fdd97c2f71aace5caeaf2a7f/cli/assets/templates/zig;
- Run
zig build -Drelease-small=true; - Inspect output file via
wasm2wat ./zig-out/lib/cart.wasm; - Find
$__stack_pointerglobal.
Expected Behavior
Stack should begin before globals on wasm targets according to #4496, i. e.
(global $__stack_pointer (mut i32) (i32.const 8192))Actual Behavior
(global $__stack_pointer (mut i32) (i32.const 14816))Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
arch-wasm32-bit and 64-bit WebAssembly32-bit and 64-bit WebAssemblybugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorregressionIt worked in a previous version of Zig, but stopped working.It worked in a previous version of Zig, but stopped working.