energia / Energia

Fork of Arduino for the Texas Instruments LaunchPad's
http://energia.nu
Other
795 stars 671 forks source link

FIXED — StellarPad: Binary Strange Size Shown on Energia #119

Closed rei-vilo closed 11 years ago

rei-vilo commented 11 years ago

Energia shows a larger size for the binary than arm-none-eabi-size.

Energia shows 7408 bytes...

/Applications/Energia.app/Contents/Resources/Java/hardware/tools/lm4f/bin/arm-none-eabi-objcopy -O binary /var/folders/95/qchnfz9d0854_3931bv30gt80000gn/T/build2834075330255731129.tmp/DualBlink_430.cpp.elf /var/folders/95/qchnfz9d0854_3931bv30gt80000gn/T/build2834075330255731129.tmp/DualBlink_430.cpp.bin Binary sketch size: 7 408 bytes (of a 262 144 byte maximum)

...while arm-none-eabi-size on Terminal shows 3200 byte:

$ /Applications/Energia.app/Contents/Resources/Java/hardware/tools/lm4f/bin/arm-none-eabi-size --target=binary /var/folders/95/qchnfz9d0854_3931bv30gt80000gn/T/build2834075330255731129.tmp/DualBlink_430.cpp.bin text data bss dec hex filename 0 3200 0 3200 c80 /var/folders/95/qchnfz9d0854_3931bv30gt80000gn/T/build2834075330255731129.tmp/DualBlink_430.cpp.bin

The later size of 3200 is consistent with the size obtained with embedXcode:

Size : 3184 out of 262144 bytes

The tests were performed with the sketch DualBlink_430 on Mac OS 10.8.2.

RickKimball commented 11 years ago

Your size is probably more accurate. We should look at this.