Pages: [1]   Go Down
Author Topic: Variation in Hex Size between Windows and OSX  (Read 322 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Sr. Member
****
Karma: 4
Posts: 323
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all, I'm noticing that between OSX and Windows distributions of the same version of Arduino (1.0.1), I'm getting a variation in hex size for the same sketch built for Leonardo. 

On OSX, the sketch compiles to 28,542 bytes, but on Windows it compiles to 28,708.  (Which is too large for Leonardo.)  On 1.0.2 the sketch is even larger, but I'll chalk that up to feature bloat.

Is anyone aware of any differences in the core libraries, or the AVR GCC compiler (or its options) between OSX and Windows that would account for the additional 166 bytes of flash usage?

Thanks!

!c
Logged

Chile
Offline Offline
Edison Member
*
Karma: 35
Posts: 1251
Arduino rocks?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you post the code?
Logged

My website: http://ried.cl

0
Offline Offline
Sr. Member
****
Karma: 4
Posts: 323
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you post the code?

8k LoC and 30+ files?  No. (And its why I didn't post it in programming questions, but it got moved here anyhow.)

I'm asking if anyone is aware of any known deviations between the two environments which would be helpful as I go bit by bit trying to create a minimal reproducible case to identify the culprit.  "No, none are known." Is a perfectly acceptable answer. =)

!c

Logged

Chile
Offline Offline
Edison Member
*
Karma: 35
Posts: 1251
Arduino rocks?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Well the compilers are not 100% the same /versions etc. I upgraded winavr in the link in my signature, maybe you get another size with the newer winavr included in that package.
Logged

My website: http://ried.cl

Pages: [1]   Go Up
Jump to: