10.109 __current_sp intrinsic

This intrinsic returns the value of the stack pointer at the current point in your program.

Syntax

unsigned int __current_sp(void)

Return value

The __current_sp intrinsic returns the current value of the stack pointer at the point in the program where the intrinsic is used.

Related reference
10.108 __current_pc intrinsic
10.131  __return_address intrinsic
10.154 GNU built-in functions
Non-Confidential PDF file icon PDF version ARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.