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
Sprat...
Yes sir! Right away sir!
Well, hmmmm. The disbelief is because I guess a 'talented googler' could create such a world.
Mmmm...
Of course I have my own photos and videos that nobody could find on the internet, so I can 'prove' my bonafides.
Well yes, of course you do.
To do so would take me time to deal with generating some kind of link to some public picture viewing site.
Oh - sounds complicated. You are a busy man, after all.
Two problems with that: 1) I don't care if you think it is a fantasy... (but I guess I care enough to even respond to your insistence that I'm making it up),
Mmmm....
and 2) I don't want to spend the time to find out how to publish such images and videos to some public url.
Well, of course not.
And yes Mr. Sprat, I did notice your appreciation for my contributions---thank you.
My pleasure Vince - keep them coming.
As far as reentrancy being 'standard' ...
Oh - who said that?
that depends upon the processor and its capabilities.
No, it depends on the compiler function call implementation.
This is part of the Embedded World, so the luxury of enough RAM etc, do not always allow this reentrant capability. Therefore, companies, like Keil, will make special provisions to allow reentrancy.
I see. So you may not be able to have reentrancy unless the compiler provides a function call implementation that allows it? Congratulations!
There are many-many controllers in the world, and many-many compilers. Just because the 'help file' or 'on-line help' doesn't specifically address it, doesn't mean that the pragma isn't required. Thus it is prudent to ask.
Perhaps so - but it was clear from your question that you thought that reentrancy was, in the general case, a feature added by the compiler manufacturer rather that a natural result of a stack based function call convention. What could possibly lead you to imagine that the calling convention for the ARM compiler would prevent reentrancy?
...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
That is known as 'humor'.... and for those across the pond, 'humour.'
What relevance does this have to me?