TinyGo 0.45.0 Released: Comments news update
TinyGo 0.45.0 ships with over 560 commits, Go 1.26 support, expanded runtime reflection, Linux posixspawn process control, and initial ESP32-P4 support.
By Dillip Chowdary • Dec 03, 2026 • Source: github.com

At a glance
- Product
- TinyGo
- Version
- v0.45.0
- Release date
- 01 Dec 22:17
- Go requirement
- Go 1.26 or newer
- Commits since 0.44.0
- More than 560
- LLVM support
- LLVM 20 through 23
In this post
TinyGo has released version 0.45.0, its largest update to date with more than 560 commits to the main repository since 0.44.0, according to the TinyGo v0.45.0 release notes. Published on 01 Dec at 22:17 via github-actions under tag v0.45.0, the release raises the minimum toolchain requirement to Go 1.26 or newer. It also introduces initial ESP32-P4 hardware support, broader runtime reflection, and Linux process management backed by posix_spawn.
This article breaks down the toolchain flags, compiler and escape analysis improvements, standard library additions, runtime memory changes, and newly supported microcontroller boards in TinyGo 0.45.0. It is written for Go developers targeting microcontrollers, WebAssembly, and hosted Linux, Windows, or Darwin environments who need to evaluate compatibility and upgrade requirements before adopting the release.
01Go 1.26 baseline and toolchain flags
TinyGo 0.45.0 requires Go 1.26 or newer across all targets and updates its embedded toolchain to build the assembler with LLVM 23 while supporting LLVM 20 through 23 in the embedded Clang shims. The builder also locates versioned Arch Linux LLVM packages, keeps concurrent builds within their shared permit limit, and releases permits when jobs drain after a failure. On the tooling side, the release upgrades wasi-libc, updates espflasher to v0.10.0 to supply the ESP flash offset, and updates go-llvm and x/tools in go.mod.
Several new CLI and builder flags give developers finer control over compilation, linking, and diagnostics. A new -print-bounds flag joins -no-debug for skipping compiler DWARF generation, -libc=glibc for linking system shared libraries, and an arch target property for -march. The tinygo test -c command now uses the -o file extension for its output format, while -stack-size forwards to wasm-ld when -scheduler=none and -buildmode=wasi-legacy works with any scheduler.
Developer utilities and target loaders also receive targeted fixes in this release. TinyGo adds wasmprof to convert wasmtime guest profiles to pprof, alongside update-binary-sizes and plot-binary-size scripts, while tools/gen-device-svd generates device files faster and resolves a duplicate ESP32-P4 register. The monitor opens at 9600 baud for ATmega targets, avoids double-counting serial ports matching multiple IDs, creates libc headers before loading packages in tinygo fix, and reduces typechecking time for independent packages.
02Compiler optimizations and escape analysis
Compiler changes in 0.45.0 reduce build times and tighten generated code across hosted and WebAssembly targets. The compiler creates common types, constants, and attributes once to avoid redundant copies, lowers s == "" to a length check, and lowers slice-zeroing loops to memset. It skips zeroing new storage for zero constants, removes a redundant bounds check in make, informs LLVM of slice and string length ranges, and marks temporary map storage as non-capturing.
Escape analysis and transform passes keep more allocations off the heap and streamline interface dispatch. The transform pass follows merged pointers in escape analysis, keeps non-escaping recursive arguments on the stack, and stack-allocates values that callees only check for nil. It also avoids copying []byte to string for read-only uses, switches on a type ID in interface method calls and type assertions, and excludes unboxed types from interface method dispatch.
Platform-specific lowering and the compile-time interpreter gain important correctness fixes. On Darwin, the compiler implements syscall.Syscall*, while on Linux it returns ^uintptr(0) in r1 on syscall errors, lowers unix.RawSyscallNoError, and preserves frame pointers on amd64 and arm64. WebAssembly modules now receive the same triple as Clang without mixing LLVM contexts in exports, two Asyncify panic/recover bugs are fixed, and the interpreter supports atomic operations in global initializers while cutting time and memory per call.
Advertisement
Tech Pulse Daily
Get tomorrow's pulse first
Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.
03Runtime reflection and POSIX process control
The reflect package expands substantially in TinyGo 0.45.0, allowing programs to construct composite types dynamically at run time using StructOf, FuncOf, MapOf, SliceOf, ArrayOf, and ChanOf. Developers can now invoke functions and methods dynamically through Value.Call, CallSlice, MakeFunc, method lookup, and callable methods, as well as perform channel operations and composite or interface conversions. The package also implements SliceAt, Value.InterfaceData, iterator support via CanSeq, Seq, and Seq2, and allocation-free DeepEqual.
On hosted operating systems, the os package now starts Linux processes using posix_spawn and implements Process.Wait, Kill, Signal, ProcAttr.Dir, and ProcAttr.Files. Linux support also gains Hostname, Chtimes, 32-bit file seeking, and O_CLOEXEC when opening files, while Windows gains working Glob, ReadDir, and File.Chdir. Elsewhere, WASI supports RemoveAll with fixed WASIp1 and WASIp2 working directories, non-hosted targets receive a null device, and crypto/rand uses getrandom on Linux.
Testing and standard library packages round out the core runtime updates. The testing package prints go test compatible benchmark output, adds B.Elapsed, supports -test.timeout and temporary artifact directories, and reports synctest results through the parent test. Additionally, internal/bytealg counts bytes a word at a time, internal/poll waits on wasip1 without a scheduler, and machine, os, and runtime standardize on internal/byteorder for byte order conversions.
04Runtime memory pinning and heap growth
TinyGo 0.45.0 updates memory management and runtime environment behavior to align more closely with upstream Go. The runtime implements Pinner, provides full GOROOT and GODEBUG support, stores timers in a min-heap, and grows slices on hosted targets using Go's growth strategy. For heap allocation, the runtime now grows the heap when less than half of it remains free, starts native heaps at 1, and updates sync to drop pooled items after two garbage collections.
| Area | Change in TinyGo 0.45.0 | Scope |
|---|---|---|
| Go toolchain | Requires Go 1.26 or newer | All targets |
| LLVM shims | Supports LLVM 20 through 23 | Embedded Clang |
| ATmega monitor | Opens at 9600 baud | ATmega targets |
| Heap growth | Grows when under half free; native starts at 1 | Runtime |
| Sync pool | Drops pooled items after two collections | Standard library |
| espflasher | Updated to v0.10.0 | ESP targets |
Note: TinyGo 0.45.0 requires Go 1.26 or newer, rejects .bin output for RP2040 and RP2350 targets, and excludes stm32g0 from the crypto/rand getrandom driver because that target has no RNG driver.
05ESP32-P4 support and new hardware boards
Microcontroller support expands with initial compatibility for the ESP32-P4 alongside broader peripheral coverage across the ESP32 family and AVR. The cores scheduler now runs on the original ESP32, while PSRAM works on ESP32 WROVER, ESP32-S3 Octal, and the Pimoroni Pico Plus 2. Developers also gain a new machine/watchdog package, capacitive touch on ESP32 and ESP32-S3, WiFi, PWM, SPI, and flash support on ESP32-C6, and multiple I2C fixes for AVR and ESP32 chips.
Four named development boards join the supported hardware roster in TinyGo 0.45.0. The release adds board definitions for the Waveshare ESP32-P4-NANO, the Elecrow CrowPanel ESP32-P4, the Adafruit ESP32-S3 Feather TFT, and the Arduino Nano R4. Together with the espflasher v0.10.0 integration for reading ESP flash offsets and the gen-device-svd register fixes, these additions expand TinyGo's reach across RISC-V, Xtensa, and Arm-based embedded boards.
Frequently asked questions
What Go version does TinyGo 0.45.0 require?
TinyGo 0.45.0 requires Go 1.26 or newer. It also updates its embedded Clang shims to support LLVM 20 through 23 and builds the embedded assembler with LLVM 23.
What new reflect features are in TinyGo 0.45.0?
The reflect package adds StructOf, FuncOf, SliceOf, MapOf, ArrayOf, and ChanOf for building types at run time. It also implements Value.Call, CallSlice, MakeFunc, channel operations, SliceAt, and iterator support via CanSeq, Seq, and Seq2.
How does TinyGo 0.45.0 handle processes on Linux?
On Linux, the os package now starts processes using posix_spawn. It also implements Process.Wait, Kill, Signal, ProcAttr.Dir, ProcAttr.Files, Hostname, Chtimes, and O_CLOEXEC when opening files.
Which new ESP32 and microcontroller boards are supported?
TinyGo 0.45.0 adds initial support for the ESP32-P4 and new board definitions for the Waveshare ESP32-P4-NANO, Elecrow CrowPanel ESP32-P4, Adafruit ESP32-S3 Feather TFT, and Arduino Nano R4.
Sources
Author
Dillip Chowdary
Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.
Related on Tech Bytes
Advertisement