Stack Overflow Detection
- From: "Richard Phillips" <raphillips@xxxxxxxxxxxx>
- Date: Fri, 30 May 2008 15:51:14 +0100
Hello all,
I'm thinking about implementing the above in a system I'm working on, does
anyone have a good strategy for doing this?
One possibility is having an area of RAM (beyond the stack "area") filled
with known data, if any of that data gets trashed then assume the stack has
overflowed. What are the pros and cons of this?
Another idea is to actually watch the SP, but one drawback is if I check
this at a predefined point in the code, then it's possible the worst case
scenario will occur between checks?
Any better ideas?
Regards,
Richard.
.
- Follow-Ups:
- Re: Stack Overflow Detection
- From: cbarn24050
- Re: Stack Overflow Detection
- From: Lanarcam
- Re: Stack Overflow Detection
- From: Vladimir Vassilevsky
- Re: Stack Overflow Detection
- From: Tomás Ó hÉilidhe
- Re: Stack Overflow Detection
- Prev by Date: Re: Driving tri-state LED matrix
- Next by Date: Re: Driving tri-state LED matrix
- Previous by thread: Driving tri-state LED matrix
- Next by thread: Re: Stack Overflow Detection
- Index(es):
Relevant Pages
|