ARM Technical Support Knowledge Articles

ACCESSING REGISTER BANKS IN C

Applies to: C51 C Compiler

Answer


Information in this article applies to:


QUESTION

Is there a way to access register bank registers in C rather than using assembly language?

ANSWER

Yes. You may use the using function attribute to specify a different register bank. For example:

void func (void) using 2
{
}

The above function declaration uses register bank 2.

MORE INFORMATION

Article last edited on: 2005-07-15 10:15:56

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