General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
-
max_
- Posts: 1
- Joined: Wed Mar 12, 2008 11:54 am
Post
by max_ » Wed Mar 12, 2008 11:55 am
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
-
Grendel
- Rank 4
- Posts: 167
- Joined: Sat Dec 16, 2006 9:53 pm
- Location: Oregon, USA
-
Contact:
Post
by Grendel » Wed Mar 12, 2008 8:03 pm
The original was probably compiled w/ WinAVR 20070525.
-
christian
- Objective Development
- Posts: 1443
- Joined: Thu Nov 09, 2006 11:46 am
Post
by christian » Thu Mar 13, 2008 10:09 pm
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.