We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I rarely ask questions on this forum, but since I couldn't [easily] find it in the help-files, or on-line, I'm asking you guys.
I usually (like never) don't use the 'reentrant' pragma, but I think I may have to do that with a particular routine.
BUT I can't find the key-word that declares a function as reentrant. Am I missing something? Is there one for Keil's IDE tools? If so, what is its form? Can I get a link to the 'official' use of it?
Thanks in advance, and I need it asap because I need to pass this class and I don't want to really learn how to do this 'embedded' stuff anyway but the teacher keeps hounding me.
--Cpt. Vince Foster 2nd Cannon Place Fort Marcy Park, VA
The general-purpose stack of the ARM makes it very unlikely that Keil has any #pragma or keyword intended for compilation of recursive - or non-recursive - functions. But the word "unlikely" does represent an uncertainty. Sometimes, you may not be happy with just being 99.99% convinced about something.
I thought it was common knowledge to be "better safe than sorry", or to "better ask one question too much".
Indeed, but the assumption implicit in the question was that there must be some mechanism to switch on reentrancy rather than it being a natural result of the calling convention.
I guess you prefer to assume and let the time tell if you were correct.
Not at all. I just prefer to engage my brain.