https://toitlang.org/ logo
Maybe `toit compile --snapshot -o foo.snapshot foo...
# general
f
Maybe
toit compile --snapshot -o foo.snapshot foo.toit
followed by
toit tools snapshot-to-image -o foo.img foo.snapshot -m32 --format=binary
gives the size. Not 100% sure.