interp: align created globals

Use the alignment from the align attribute of the runtime.alloc call.
This is going to be a more accurate alignment, and is typically smaller
than the default.
This commit is contained in:
Ayke van Laethem
2024-11-20 13:15:21 +01:00
committed by Ron Evans
parent 5f252b3e16
commit ecc6d16f22
3 changed files with 19 additions and 7 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ func TestBinarySize(t *testing.T) {
// microcontrollers
{"hifive1b", "examples/echo", 4600, 280, 0, 2268},
{"microbit", "examples/serial", 2908, 388, 8, 2272},
{"wioterminal", "examples/pininterrupt", 6140, 1484, 116, 6832},
{"wioterminal", "examples/pininterrupt", 6140, 1484, 116, 6824},
// TODO: also check wasm. Right now this is difficult, because
// wasm binaries are run through wasm-opt and therefore the