sketch compiling larger by ~1k in AS7 compared to Arduino IDE

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If I compile a sketch in AS7 for ATTiny841 it is now ~1k larger than when compiled in Arduino IDE.  This happened for the first time today.  Previously it has been the same size in both.  I use VisualMicro to load and edit the ino file in AS7.  In Arduini IDE I think it is the same size as it was last night, when I last worked on it.  Has anyone experienced this or know what might have changed?

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The obvious prime suspect is the optimization setting.

 

Are you saying the exact same source code generated 1K larger today than yesterday? In the same project, or in a newly set up project?

 

You didn't by any chance introduce some floating point stuff - a double variable or a FP literal or some such?

"He used to carry his guitar in a gunny sack, or sit beneath the tree by the railroad track. Oh the engineers would see him sitting in the shade, Strumming with the rhythm that the drivers made. People passing by, they would stop and say, "Oh, my, what that little country boy could play!" [Chuck Berry]

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If I open the same ino  file, right now, in either IDE and compile it, I get overflow by 1068 in AS7, and 7968 in Arduino.  I haven't been able to fix it yet.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Compare LSS files. You may also find "avr-nm -size-sort" on the ELF files useful.