queezythegreat / arduino-cmake

Arduino CMake Build system
648 stars 216 forks source link

hex size issue #21

Closed treaves closed 12 years ago

treaves commented 12 years ago

I have a project that when compiled with make produces a 21k hex file. This same exact code, when compiled in the Arduino IDE, the IDE reports "Binary sketch size: 7426 bytes". Why is the hex compiled via the arduino-cmake 3x the size?

treaves commented 12 years ago

I had not realized that the hex files were ASCII. So this explains the difference.

It would be nice for the make output to print the binary size, like the Arduino IDE. So lets transition this to a feature request.

Thanks.