ARM Technical Support Knowledge Articles

USING THE STACK FOR ALL LOCAL VARIABLES

Applies to: C166 C Compiler

Answer


Information in this article applies to:


QUESTION

Is there a way to force the compiler to place all parameters onto the user stack, rather than using registers?

ANSWER

Yes. Use optimizer level 2 and the compiler will not use registers for local variables. Instead, all local variables will be stored on the user stack.

MORE INFORMATION

Article last edited on: 2005-07-15 14:10:22

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