Posts

Showing posts from July, 2020

Where do all my bytes go? ... an analysis of program size in an S4A 4.0 series application

You heard it here first, but coming this year, we are finally releasing the version 2 compiler, as part of Swift for Arduino release 4.0. This is a very exciting new development, with our own patched swift frontend and (most importantly) a custom built standard library, fine tuned for the atmega328p and the arduino uno.  There is most definitely nothing else like this anywhere in the world. Another first! As part of this launch, I'm going to try to do some more blog posts about day to day findings and experiences with making AVR/Arduino programs using our new compiler. As an example, I just compiled this program... import AVR SetupSerial() print("newer API") public let dummyArray = [1,5,9,112,0,1,4] print(dummyArray.count) while true {} This is a super simple program demonstrating some of the powerful new features of version 4.0, namely our custom made strings and our customised arrays. Both are super efficient on a microcontroller and we have removed some