Interrupt Handler and Context Saving
Re: Interrupt Handler and Context Saving
Tricksy optimizer is tricksy.
If you know what you're doing, you're not learning anything.
Re: Interrupt Handler and Context Saving
Boy, have I learned that is so true. Well, at least next time I hope to be somewhat wiser in case of a problem by checking the code to see what Isn't there - as well as what is.
Rotary_Ed
Matthews, NC USA
Rv-6A N494BW Rotary Powered
Matthews, NC USA
Rv-6A N494BW Rotary Powered
Re: Interrupt Handler and Context Saving
One thing that I've gotten in the habit of doing is if something is behaving inexplicably, look at the stats and the ASM. If something's missing, think optimizer.
If you know what you're doing, you're not learning anything.
Re: Interrupt Handler and Context Saving
Good habit for sure. Don't know why I checked IF statements, memory addresses to IC registers, clearing of the flag, etc, etc.
I think I had checked clearing the buffer off my mental checklist and with such a very simple operation - I mean what could possibly go wrong
But, in any case, it taught me that I can not completely trust the compiler to do what my code is telling it to do.
Lesson learned number 2010
I think I had checked clearing the buffer off my mental checklist and with such a very simple operation - I mean what could possibly go wrong
But, in any case, it taught me that I can not completely trust the compiler to do what my code is telling it to do.
Lesson learned number 2010
Rotary_Ed
Matthews, NC USA
Rv-6A N494BW Rotary Powered
Matthews, NC USA
Rv-6A N494BW Rotary Powered