ARM Technical Support Knowledge Articles

REENTRANT STACK NEEDED FOR REENTRANT LIBRARY FUNCTIONS?

Applies to: C51 C Compiler

Answer


Information in this article applies to:


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

Article last edited on: 2005-07-15 09:58:13

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential