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,

    Thanks, actually that is what I am doing right now. I cannot modify the code at all (because of legal, rather than technical issues). I would like to have something like

    #pragma ALLFUNCTIONSREENTRANT
    #include <untouchablecode.c>
    

    or having an equivalent directive in C51

    Thanks,

    L

Reply
  • Andy,

    Thanks, actually that is what I am doing right now. I cannot modify the code at all (because of legal, rather than technical issues). I would like to have something like

    #pragma ALLFUNCTIONSREENTRANT
    #include <untouchablecode.c>
    

    or having an equivalent directive in C51

    Thanks,

    L

Children