Arduino Tiny

I set out to make a smaller core for the '84 processor and ended up with...

  • An empty Sketch is 30 bytes less (332 vs 302)
  • pinMode only is 44 bytes less (466 vs 422)
  • digitalWrite only is 76 bytes less (522 vs 446)
  • digitalRead only is 78 bytes less (512 vs 434)
  • One of each is 122 bytes less (732 vs 610)
  • analogWrite only is 166 bytes less (728 vs 562)
  • All four functions is 42 bytes less (868 vs 826)
  • Largish test Sketch that contains a mix of the four functions is 10 bytes larger (bad / confusing news)
  • pinMode is approximately 16% faster
  • digitalWrite is about 18% faster
  • digitalRead is 23% to 25% faster
  • analogWrite is about 22% faster
  • A few fringe cases are considerably faster

In theory, this core is a bit more portable to other Tiny processors than the standard core.

I'm disappointed in the memory savings. There are some changes that would probably make it bit smaller but the speed increase would diminish considerably.

Which is more important ... Faster or less memory?