Anthony, I don't really see how SDCC could help here. Is this debug status register an SFR? If so you could read it anywhere in your code. But the question is of course if you still get to that code when it is set. An interrupt might help here. When detected you can light an LED or something or perform a reset.
Maarten > Is there anyway with SDCC on cc2430/MCS51 to detect a stack overflow? > > CC2430 has a stack overflow bit in the debug status register but I don't > see anyway to use that. I've seen other cpus have a stack overflow > interrupt, it would help if there was something similar for mcs51... > > a* ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user