[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


interrupt

Description:

Controls the compilation of object code for interrupt routines.

Compatibility:

This pragma is compatible with the following platform targets:

68K

PowerPC

NEC V800

Intel x86

MIPS

Embedded 68K

Prototype:
  #pragma interrupt on|off|reset

For Embedded PowerPC:


  #pragma interrupt [SRR DAR DSISR enable] on | off | reset Remarks:

When this option is on, the compiler generates a special prologue and epilogue for functions so that they may be used to handle interrupts.

For convenience, the compiler will also mark any interrupt function so that the linker does not dead-strip it. See "force_active" for related information.


Embedded 68K

When this option is on, the compiler generates a special prologue and epilogue for the functions encapsulated by this pragma. All modified registers (both nonvolatile and scratch registers) are saved or restored, and functions return via RETI instead of JMP [LP].

You can also use __declspec(interrupt) to mark functions as interrupt routines. For example:


  __declspec(interrupt) void foo()   {
  //enter code here
  }

[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 17, 2000