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

HOW TO FORCE C51 TO COMPILE ALL FUNCTIONS REENTRANT

Hi,

Do you know a way to tell the compiler (via #pragma or similar) all functions in the C file must be reentrant?

I am using a source library running in several micros and I would not like to maintain a separate source just for Keil.

Thanks

L

Parents
  • Andy,

    Half of the code uses pointer to functions having local variables. I can redo the calling tree by hand in order to avoid using reentrancy, but it will take some time checking and profiling the code. Talking with the vendor is ongoing, but all of that is besides the point.

    I will put that request to Keil to see if they can put a REENTRANT directive to the compiler...

    Thanks

    L

Reply
  • Andy,

    Half of the code uses pointer to functions having local variables. I can redo the calling tree by hand in order to avoid using reentrancy, but it will take some time checking and profiling the code. Talking with the vendor is ongoing, but all of that is besides the point.

    I will put that request to Keil to see if they can put a REENTRANT directive to the compiler...

    Thanks

    L

Children
No data