Go Down

Topic: Variation in Hex Size between Windows and OSX (Read 554 times) previous topic - next topic


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?




My website: http://ried.cl


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. =)



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.
My website: http://ried.cl

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131