ARM Technical Support Knowledge Articles

NOREGPARMS DOES NOT WORK ON REENTRANT FUNCTIONS

Applies to: C51 C Compiler

Answer


Information in this article applies to:


QUESTION

I am using reentrant functions and I've noticed that the compiler passed the first few arguments in registers (when possible). If I use the NOREGPARMS directive, will the compiler pass all arguments on the reentrant stack?

ANSWER

No. The NOREGPARMS directive is provided for compatibility with the C51 Version 2 compiler. Version 2 did not offer reentrant functions so this directive has no effect on the code generated for them.

SEE ALSO

Article last edited on: 2004-04-24 14:27:07

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