Interrupt Handler and Context Saving

General discussion on mikroPascal PRO for PIC32.
Author
Message
LGR
Posts: 3204
Joined: 23 Sep 2004 20:07

Re: Interrupt Handler and Context Saving

#16 Post by LGR » 28 Aug 2013 22:58

Tricksy optimizer is tricksy.
If you know what you're doing, you're not learning anything.

Rotary_Ed
Posts: 756
Joined: 26 Dec 2004 23:10
Location: Matthews, NC, USA
Contact:

Re: Interrupt Handler and Context Saving

#17 Post by Rotary_Ed » 28 Aug 2013 23:07

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. :lol:
Rotary_Ed
Matthews, NC USA
Rv-6A N494BW Rotary Powered

LGR
Posts: 3204
Joined: 23 Sep 2004 20:07

Re: Interrupt Handler and Context Saving

#18 Post by LGR » 28 Aug 2013 23:40

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.

Rotary_Ed
Posts: 756
Joined: 26 Dec 2004 23:10
Location: Matthews, NC, USA
Contact:

Re: Interrupt Handler and Context Saving

#19 Post by Rotary_Ed » 29 Aug 2013 00:10

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
Rotary_Ed
Matthews, NC USA
Rv-6A N494BW Rotary Powered

Post Reply

Return to “mikroPascal PRO for PIC32 General”