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

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

Re: [avr-gcc-list] More on optimization


From: Geoffrey Wossum
Subject: Re: [avr-gcc-list] More on optimization
Date: Thu, 10 Oct 2002 16:14:36 -0500 (CDT)

> How about inside your cli() sei(), assigning the value of gval to a local
> uint8_t variable, manipulating it as necessary, then assigning the final
> result back to gval?

This would also be faster because local variable access is faster than 
global variable access with AVR-GCC.

---
Geoffrey Wossum
Project AKO - http://ako.sf.net

avr-gcc-list at http://avr1.org



reply via email to

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