Re: NutEnterCritical vs NutEnterCriticalAccess()
Dušan <[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.ethernut |
|---|---|
| Message-ID | <[email protected]> |
Hi Uwe, I noticed your attempt to optimize NutEnterCritical(). If there are more pairs NutEnterCritical() / NutExitCritical(), and these macros are using a memory variable, this generates more local memory variables. However these are only on stack and there are not so many of them, our compiler does not optimize their usage. What about to use something like NutUseCritical() and to use it at the beginning of each function where NutEnterCritical() is used ? #define NutUseCritical() int temp_ We solved this by using a register variable. But anyhow, once there is an opportunity to modify this long time untouched source codes ... *Dušan Ferbas * _______________________________________________ http://lists.egnite.de/mailman/listinfo/en-nut-discussion