Keil Logo

C51: Reentrant Stack Needed for Reentrant Library Functions?


Information in this article applies to:

  • C51 All Versions

QUESTION

I am using library functions such as memcpy and memcmp in my application. According to the manual, these library functions are reentrant. Does this mean that I have to set up a reentrant stack in the STARTUP.A51 module?

ANSWER

No, it is not necessary to set up a reentrant stack for these library functions. These functions are reentrant because they hold all local variables in registers and do not store them in memory.

MORE INFORMATION

SEE ALSO


Last Reviewed: Thursday, February 25, 2021


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.