RE: [avr-gcc-list] On getting an ISR leaner with GCC

2008-12-31 Thread Parthasaradhi Nayani
> If you look in the avr-libc manual under Frequently Asked > Questions you can find FAQ #3: "How to permanently bind a > variable to a register". > That allows you to assign particular registers to variables, > although care must be used when using the avr-libc library functions. I had fac

Re: [avr-gcc-list] On getting an ISR leaner with GCC

2008-12-30 Thread dlc
All, Stu Bell wrote: If you look in the avr-libc manual under Frequently Asked Questions you can find FAQ #3: "How to permanently bind a variable to a register". That allows you to assign particular registers to variables, although care must be used when using the avr-libc library functions.

RE: [avr-gcc-list] On getting an ISR leaner with GCC

2008-12-30 Thread Stu Bell
Tuesday, December 30, 2008 9:13 AM > To: Dave Hylands; dlc > Cc: avr-gcc List > Subject: RE: [avr-gcc-list] On getting an ISR leaner with GCC > > If you look in the avr-libc manual under Frequently Asked > Questions you can find FAQ #3: "How to permanently bind a > variab

RE: [avr-gcc-list] On getting an ISR leaner with GCC

2008-12-30 Thread Stu Bell
If you look in the avr-libc manual under Frequently Asked Questions you can find FAQ #3: "How to permanently bind a variable to a register". That allows you to assign particular registers to variables, although care must be used when using the avr-libc library functions. I agree with Dave that cal

Re: [avr-gcc-list] On getting an ISR leaner with GCC

2008-12-29 Thread dlc
Thanks all for the suggestions. I was tempted by the "naked" function, but that required a total re-write mostly in assembly to get it right and I have found that sometimes the "register" variables get slammed by something else, so something I was doing wasn't reliable. The code generated by

Re: [avr-gcc-list] On getting an ISR leaner with GCC

2008-12-27 Thread Dave Hylands
Hi Dennis, On Fri, Dec 26, 2008 at 11:52 PM, dlc wrote: > The subject says it all. I've an ISR that is using too many cycles for > something that kicks every 10us. I'm very experienced with the PIC and know > how to specify registers that are not touched outside of the ISR to avoid > lots of "p