Page 1 of 1

USBaspLoader filesize

Posted: Wed Mar 12, 2008 11:55 am
by max_
hi,

i just compiled the USBaspLoader(2008-2-5), but i just don't get the same filesize as the hex-files in the hexfolder.
For the 16mhz, atmega168(no changes to the source), i get a filesize of 2118 instead of the 2028 of the one in the hexfolder.
Why this diffrence ?
I use the avr-gcc version 4.2.2(WinAvr 20071221).

max

Posted: Wed Mar 12, 2008 8:03 pm
by Grendel
The original was probably compiled w/ WinAVR 20070525.

Posted: Thu Mar 13, 2008 10:09 pm
by christian
The original was compiled with avr-gcc 3.4.6 on a Mac. Gcc 3 produces more efficient code in most cases.

You can turn off options in the configuration to shrink it down so that it fits into 2048 bytes. EEPROM access is usually not required.