News for hackers. Stuff that matters.
Re:Rust on AVR: Safer microcontrollers almost here by Gibbon1 on Saturday February 11, 2017 @07:11AM (#13622271)
I wrote a bunch of stuff for the AVR in c. But it's been a few years since I've done much more than a few fixes. Some of the weird issues with targeting a Harvard architecture is I think fixed.

I'd say: 'works okay'

One thing that annoyed me was calling a variadic function like printf was expensive ~100-120 bytes each call. Eight to Ten printf's --> 1k of flash gone. Far as I could tell most of it was pushing and popping stuff on the stack one byte at a time.

I ported a bunch of AVR code to an ARM Cortex[1]. Code size didn't increase much.

[1] ARM Processors are approximately half the cost of an AVR. Seriously not important if you're building 1000's of something. Important if you're building 100,000s.

There are no comments on this comment yet.