aboutsummaryrefslogtreecommitdiffhomepage
path: root/builder
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2024-11-20 13:15:21 +0100
committerRon Evans <[email protected]>2024-11-21 10:19:19 +0100
commitecc6d16f223f78ace8c71850b1a2b5cfce8c324c (patch)
tree369bf2fb9984bed0a48c3721a6c323c51c343270 /builder
parent5f252b3e16f80a224417fc8903fcce63eff0b517 (diff)
downloadtinygo-ecc6d16f223f78ace8c71850b1a2b5cfce8c324c.tar.gz
tinygo-ecc6d16f223f78ace8c71850b1a2b5cfce8c324c.zip
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.
Diffstat (limited to 'builder')
-rw-r--r--builder/sizes_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/builder/sizes_test.go b/builder/sizes_test.go
index 650a5fbb5..bda5e0760 100644
--- a/builder/sizes_test.go
+++ b/builder/sizes_test.go
@@ -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