ARM Technical Support Knowledge Articles


Applies to: C51 C Compiler


Information in this article applies to:


What does the RET_ISTK directive do?


The RET_ISTK directive causes the idata reentrant stack to be used for return address. Normally, return addresses are stored on the 8051's hardware stack. This directive instructs the compiler to generate code that pops the return address from the hardware stack and stores it on the idata reentrant stack.

You may use the RET_ISTK directive to unload return addresses from the on-chip (hardware) stack. This directive may be selectively used on the modules that contain the deepest stack nesting. If you use this directive, you must initilize the ?C_IBP reentrant stack pointer defined in the startup code.


Article last edited on: 2002-04-08 00:00:00

Rate this article

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