Keil Logo


Information in this article applies to:

  • C51 Version 6.01


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.


Last Reviewed: Monday, April 8, 2002

Did this article provide the answer you needed?
Not Sure
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.