File:  blinky.txt
Revision:  -
Date:  2 Oct 2002
Karl Lunt


Notes on compiling and linky the blinky program



These notes refer to the blinky.c program described in the October 2002
issue of Nuts & Volts magazine.  That article was, unfortunately, incomplete.
It left out a couple of header files from the .zip file.  It also failed to
provide key information needed to create an executable.

1.  Either the pkzip program I used or the unzip program some readers used
translated all unzipped file names to uppercase, which confused the make
utility, as it is case-sensitive.  If necessary, rename all unzipped files
to their lowercase equivalents.

2.  The article did not properly cover the linker search path.  When the linker
tries to locate any needed archives, such as libgcc.a, it relies on search
directories to find possible folders.  While doing the article, I had copied
libgcc.a into my working directory, so the search worked because the working
directory is always checked.  Though it works, this technique is not very
good.  The proper way is to pass the linker a -L option listing search directories.
I've updated the make file to include this search path option.

3.  The blinky.c source refers to isr.h, but that file was not included in the
.zip file.  It has been added; sorry for the omission.

Karl Lunt
karllunt@seanet.com


