This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

May I spceify all of functions are reentrant by directives?

Hello,

May I specify all of functions are reentrant function by directives?
I am using RXT51 tiny and my functions are reentrantable.
I am tired to declare "reentrant" at the end of every function declaration.

Thank you very much~

Parents
  • Hi Sir,
    I do really understand a reentrant function can slow down the executing performance and I am keeping functions from being that.
    But the tasks are not simply doing the same thing, but depend on the arguments (structure pointer) doing difference things. Each task does long-winde processes and the code are big engouh to make me decide not to create the same function for each task.

    Can we just set compiler not to use fixed memory address to put locals or arguments but use reentrant stack (or similar method) as default?

Reply
  • Hi Sir,
    I do really understand a reentrant function can slow down the executing performance and I am keeping functions from being that.
    But the tasks are not simply doing the same thing, but depend on the arguments (structure pointer) doing difference things. Each task does long-winde processes and the code are big engouh to make me decide not to create the same function for each task.

    Can we just set compiler not to use fixed memory address to put locals or arguments but use reentrant stack (or similar method) as default?

Children