qaz@lemmy.world to Programmer Humor@lemmy.mlEnglish · 9 个月前-Wall ain't alllemmy.worldimagemessage-square25fedilinkarrow-up1342arrow-down115
arrow-up1327arrow-down1image-Wall ain't alllemmy.worldqaz@lemmy.world to Programmer Humor@lemmy.mlEnglish · 9 个月前message-square25fedilink
minus-squaregredo@lemmy.worldlinkfedilinkarrow-up2·9 个月前Interesting, since golang only includes the parts of the stdlib that are used in the executable binary.
minus-squareqaz@lemmy.worldOPlinkfedilinkarrow-up4·9 个月前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") }
minus-squarepipe01@lemmy.pipe01.netlinkfedilinkarrow-up3·9 个月前Strip 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