[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Newbie: Writing Efficient C Code For AVR Microcontrol
Re: [avr-gcc-list] Newbie: Writing Efficient C Code For AVR Microcontrollers.
Fri, 16 Nov 2001 11:13:04 +0100
Am Donnerstag, 15. November 2001 16:31 schrieb John Branthoover:
> Hello All,
> I am currently writing C code for my first AVR
> project. Being fairly new to C, I am concerned about
> writing inefficient code and wasting program memory
You do better in focussing to writing good, easy to understand code
with a clear design. Maybe that`s enough to meet your requirements.
Surely it will reduce your total developing time.
And that`s a good base for further steps:
First let the compiler optimize your code. Optimization is sometimes
tedious work which can be done automatically. Only if that isn`t
enough you have to optimize by hand (addressing arrays with pointers,
TSP - Teleprocessing Systems & Products mbH
Matthias Goeppner address@hidden
Altenreuth 5 95326 Kulmbach - Germany
phone: +49 9221 804253 fax : +49 9221 8219015