9.107 __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
9.106 __current_pc intrinsic
9.128  __return_address intrinsic
9.151 GNU built-in functions
Non-ConfidentialPDF file icon PDF versionARM DUI0375F
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.