The code does alot of IO port operations. Keil uses SFR and SBIT declarations whereas the AVR code uses defines to set IO port locations and byte operations to set/clear/test bits. There has to be a better way than slogging through the text conversion and then slogging through the debug???
Yes,
From an organizational perspective, it's not all SPI: There is an intrinsic routine on the AVR and needs to be added to 8051, and time of day which runs on the host.
Am left with two questions: 1) What optimizations should be expected from a C compiler for small microprocessor? (a new thread?) 2) Number of source files & their relation to the hardware and software structure?