qaz to Programmer [email protected]English • 1 year ago-Wall ain't allimagemessage-square25arrow-up1346arrow-down115
arrow-up1331arrow-down1image-Wall ain't allqaz to Programmer [email protected]English • 1 year agomessage-square25
minus-square@gredolink2•1 year agoInteresting, since golang only includes the parts of the stdlib that are used in the executable binary.
minus-squareqazOPlink4•1 year agoI just tested it and a simple hello world program still produces a 1.7MiB binary, while the device only has 512KiB of RAM. package main import "fmt" func main() { fmt.Println("hello world") }
minus-square@[email protected]linkfedilink3•1 year agoStrip the debug info, should be a lot smaller. Also check out TinyGo, it’s meant for embedded devices
Interesting, since golang only includes the parts of the stdlib that are used in the executable binary.
I just tested it and a simple hello world program still produces a 1.7MiB binary, while the device only has 512KiB of RAM.
package main import "fmt" func main() { fmt.Println("hello world") }
Strip the debug info, should be a lot smaller. Also check out TinyGo, it’s meant for embedded devices