Function
#pragma NO_FRAME
None
None
None
This pragma is accepted for compatibility only. It is replaced by the #pragma NO_ENTRY and #pragma NO_EXIT pragmas.
For some compilers, using this pragma does not affect the generated code. Use the two pragmas NO_ENTRY and NO_EXIT instead (or in addition). When the compiler does consider this pragma, see the #pragma NO_ENTRY and #pragma NO_EXIT for restrictions that apply.
This pragma suppresses the generation of frame code and is useful for inline assembler functions.
The code generated in a function with #pragma NO_FRAME may be unreliable. It is assumed that the user ensures correct memory usage.
The following listing shows how to use the NO_FRAME pragma (along with others) to avoid any generated code by the compiler. All code is written in inline assembler.
#pragma NO_ENTRY #pragma NO_EXIT #pragma NO_FRAME #pragma NO_RETURN void Func0(void) { __asm {/* No code should be written by the compiler.*/ ... } }