ARM Technical Support Knowledge Articles

_POP_ INTRINSIC LIBRARY ROUTINE

Applies to: C166 C Compiler

Answer


Information in this article applies to:


QUESTION

How can I pop values from the stack in C?

ANSWER

You may use the _pop_ intrinsic library routine to POP word values from the system stack. This library routine returns the 16-bit value that is POPed. For example:

#include <intrins.h>

void testpop (void)  {
  volatile unsigned temp;

  _push_ (temp);
  temp = _pop_ ();
}

MORE INFORMATION

SEE ALSO

Article last edited on: 2005-10-20 07:41: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