Arduino IDE 1.6.10 compiles with more space for games!

Hi,

today I tested our TEAM a.r.g. games “Mystic Balloon” and “Virus LQP-79” with the new Arduino IDE 1.6.10 and both compile correct and do work, BUT …

we gained like 2 KB in each game o_O …

Can others confirm this ? I used IDE 1.6.10 for Mac OS.

If this is true, we can add more levels in games :slight_smile:

4 Likes
  • Mac 1.6.9 + Mystic Balloon v1.1
    Sketch uses 28,560 bytes (99%) of program storage space. Maximum is 28,672 bytes.
    Global variables use 1,695 bytes (66%) of dynamic memory, leaving 865 bytes for local variables. Maximum is 2,560 bytes.

  • Mac 1.6.10 + Mystic Balloon v1.1
    Sketch uses 26,618 bytes (92%) of program storage space. Maximum is 28,672 bytes.
    Global variables use 1,699 bytes (66%) of dynamic memory, leaving 861 bytes for local variables. Maximum is 2,560 bytes.

  • Win 1.6.10 + Mystic Balloon v1.1
    Sketch uses 26,618 bytes (92%) of program storage space. Maximum is 28,672 bytes.
    Global variables use 1,699 bytes (66%) of dynamic memory, leaving 861 bytes for local variables. Maximum is 2,560 bytes.


  • Mac 1.6.9 + non program
    Sketch uses 4,054 bytes (14%) of program storage space. Maximum is 28,672 bytes.
    Global variables use 149 bytes (5%) of dynamic memory, leaving 2,411 bytes for local variables. Maximum is 2,560 bytes.

  • Mac 1.6.10 + non program
    Sketch uses 3,624 bytes (12%) of program storage space. Maximum is 28,672 bytes.
    Global variables use 148 bytes (5%) of dynamic memory, leaving 2,412 bytes for local variables. Maximum is 2,560 bytes.

  • Win 1.6.10 + non program
    Sketch uses 3,624 bytes (12%) of program storage space. Maximum is 28,672 bytes.
    Global variables use 148 bytes (5%) of dynamic memory, leaving 2,412 bytes for local variables. Maximum is 2,560 bytes.


3 Likes

@emutyworks yeah and it seems to bigger the sketch, to more space you gain.

Can others confirm this on Windows or Linux ?

1 Like

Now, I’m preparing a Windows version results :smiley:

1 Like

It’s the same with Linux. I don’t think you get a difference in sketch size for different host OSs. It’s the same cross compiler used on all of them.

I’ve seen the memory gain between 1.6.9 to 1.6.10 on every sketch that I’ve compiled. It’s usually around a 1K to 2K gain.

1 Like

Mac 1.6.9 + Mystic Balloon v1.1
Global variables use 1,695 bytes (66%)
Mac 1.6.10 + Mystic Balloon v1.1
Global variables use 1,699 bytes (66%)

Global variables use +4 bytes

1 Like

The most basic Arduboy sketch is 8758 bytes with 1.6.9 and 7670 bytes with 1.6.10, a savings of 1088 bytes.

#include <Arduboy.h>

Arduboy arduboy;

void setup() {
  arduboy.begin();
}

void loop() {
}

EDIT: The above numbers were with an experimental version of the Arduboy library.
With Arduboy library V1.1.1 the numbers are:
10466 with 1.6.9 and 9274 with 1.6.10 for a savings of 1192 bytes.

1 Like

Excellent sleuthing work! Investigative reporting at its best! :slight_smile:

5 Likes

Still need to check on Linux? I can later today after I get home from work.

1 Like

http://community.arduboy.com/t/arduino-ide-1-6-10-compiles-with-more-space-for-games/2064/5?u=mlxxxp

@MLXXXp, at a certain version of the IDE I had different compiled sizes for MAC and Windows … It took me a week to figure out there was a difference, but I can’t recall what IDE version it was. (it was before the Arduboy). So I never take that for granted again :slight_smile:

so @darrell yes please, just to be sure (although it should have the same result)

2 Likes