Getting the ATmega8 to run our Program
Wednesday, July 29th, 2009We saw in our earlier posts, how to wire up the programmer and how to write a C Program. Now, let us see how to compile and download the program onto the device. gcc, as most of you may know, is a cross compiler. A cross compiler is usually used for off target compiling. Thus, a program can be compiled by gcc targeting any platform, not just the host platform. In short, eventhough gcc runs and compiles on a PC, it can be asked to compile for ATmega8. Thus, effectively, we can generate a hex file readable by the device; but not by the PC.
Read the full content

