View Single Post
  #12   Spotlight this post!  
Unread 22-03-2004, 09:41
gnormhurst's Avatar
gnormhurst gnormhurst is offline
Norm Hurst
AKA: gnorm
#0381 (The Tornadoes)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Trenton, NJ
Posts: 138
gnormhurst will become famous soon enoughgnormhurst will become famous soon enough
Re: Your testing beacons vs. competition beacons

Quote:
Originally Posted by Kevin Watson
Yeah, you can see some pretty wierd behavior if the context isn't saved properly. It would be nice if the compiler was more intelligent in this regard. Until then, you need to tweak this yourself with a somewhat cryptic #pragma statement that's documented in section 2.9.2 of the compiler user's guide.

-Kevin
Thanks, yeah, I was using the old #pragma. I updated it to the more conservative one you posted here and the brain farts went away.

All: it's the "#pragma interruptlow" in user_routines_fast.c. This is the one to use:

Code:
#pragma interruptlow InterruptHandlerLow save=PROD,section("MATH_DATA"),section(".tmpdata")
__________________
Trenton Tornadoes 381
2004 Philadelphia Regional Winners
2006 Xerox Creativity Award
---
My corner of the USPTO.
My favorite error message from gcc: main is usually a function
My favorite error message from Windows: There is not enough disk space available to delete this file.