avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [avr-gcc-list] Newbie: Writing Efficient C Code For AVR Microcontro


From: Jon Bertrand
Subject: RE: [avr-gcc-list] Newbie: Writing Efficient C Code For AVR Microcontrollers.
Date: Fri, 16 Nov 2001 08:14:15 -0700

John,

This may seem obvious but I'll toss it out anyway: If you are worried
about code size then watch your assembly language listing and your code
segment size as you try different ways to code.  Pick the way that is
the smallest.  I find every development environment is a little
different so I keep a careful eye on size as I add functionality.

You soon get a feel for how c code translates to assembly so you'll know
what to use and what to avoid.

Jon B.

> -----Original Message-----
> From: John Branthoover [mailto:address@hidden
> Sent: Thursday, November 15, 2001 8:31 AM
> To: AVR-GCC List
> Subject: [avr-gcc-list] Newbie: Writing Efficient C Code For AVR
> Microcontrollers.
> 
> 
> 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
> space.  I have down loaded the Atmel application note
> AVR035:  Efficient C coding for AVR.  This application
> seems to based on the IAR compiler.
> 
>       My question is:  Can this information in the
> application note be applied to the AVR-GCC compiler? 
> If not,  are there any documents with tips for writing
> efficient C code using the AVR-GCC compiler?
> 
> Any information that you can give me will be greatly
> appreciated.  Thank you for your time and have a nice
> day.
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Find the one for you at Yahoo! Personals
> http://personals.yahoo.com
> 
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://avr.jpk.co.nz/mailman/listinfo/avr-gcc-list
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]