4 ms·
A few points: * I don't think a few tens of bytes is realistic for a real application that needs to set up the stack, timers, and then blink some LEDs (https:/
by posborne 11y ago
A few points:
* I don't think a few tens of bytes is realistic for a real application that needs to set up the stack, timers, and then blink some LEDs (https://github.com/mcoffin/zinc/blob/new-build/examples/app_blink_pt.rs https://github.com/mcoffin/zinc/blob/new-build/examples/app_... / https://github.com/mcoffin/zinc/blob/new-build/examples/app_blink.rs https://github.com/mcoffin/zinc/blob/new-build/examples/app_...)
* Assuming the code size overhead does not continue to bloat after some initial overhead, I think rust can still be very competitive. Although modern embedded systems are still very constrained, the days of 8-bit micros are basically over. You can buy a 32-bit ARM micro for nearly the same cost with sufficient RAM/Flash to run rust well.
* Looking back, I think the size of blink should actually be closer to 600 bytes. Will need to investigate: http://zinc.rs/stats/ http://zinc.rs/stats/