Ayke van Laethem b11a618d99 compiler: Set actual initializer for global variables
In the Go SSA, global variables are initialized in the init() function
instead of declaring them in the global itself. Work around this oddity
by simply setting the correct initializer when we find this global.

This should produce more efficient code, both in RAM and code size.
Apparently LLVM didn't optimize it away on it's own.
2018-04-29 00:59:28 +02:00
2018-04-25 20:06:08 +02:00
2018-04-27 01:29:13 +02:00
2018-04-11 16:17:14 +02:00
2018-04-25 20:06:08 +02:00
2018-04-26 23:38:46 +02:00
S
Description
Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.
BSD-3-Clause 36 MiB
Latest
2025-08-19 12:03:57 +00:00
Languages
Go 91.7%
Linker Script 2.8%
Assembly 2.7%
Makefile 1.2%
C++ 0.5%
Other 0.9%