Recompiling the AVR code

Discussion about my Wifi Radio project at http://mightyohm.com/wifiradio/ or my WL-520gU talk at NOTACON.
Post Reply
Balthasar
Posts: 5
Joined: Tue Mar 29, 2011 7:15 am

Recompiling the AVR code

Post by Balthasar »

Hi Jeff,

I am playing with WinAVR (20100110) and trying to recompile your AVR LCD handler (main.c, lcd.c). You know, I want to make sure I can repro the whole stuff before I start with the project. I am going to reburn my AVR programmer's AVR as well.

So I left everything on default in WinAVR, opened lcd.c and called a "make all" command from the menu. Apart from the fact I got 13 warnings on signed/unsigned char array type mismatches (IMHO not a real problem), the resulting .hex file differs on 300+ positions (I checked it with frhed).

What do you think the reason for the differences could be? Since I am using your makefile, I can only think of compiler options or maybe you were using an older version of WinAVR. Any idea?

Thanks,
Balthasar
User avatar
mightyohm
Site Admin
Posts: 1064
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: Recompiling the AVR code

Post by mightyohm »

I didn't use WinAVR at all, but instead used CrossPack on the Mac, and probably used gcc3 as well (although I can't remember now).

I wouldn't use the exact size/contents of the hex file as a good gauge of whether the code is compiling correctly.
Balthasar
Posts: 5
Joined: Tue Mar 29, 2011 7:15 am

Re: Recompiling the AVR code

Post by Balthasar »

Hi, that explains everything. A different compiler has a different code generator

Thanks, Balthasar
Post Reply