Nigel Spon

ColdFire register usage and #pragma interrupt

Discussion created by Nigel Spon on Aug 3, 2006
Latest reply on Aug 15, 2006 by CrasyCat
Does anyone know what registers are considered volatile/non-volatile across function calls by the CW compiler for Coldfire, v6.2? The manual doesn't say, and I'm wondering if they are all volatile.

I am also wondering if "#pragma interrupt on" is smart enough to save registers that are used by routines that are called by the interrupt routine that it is protecting. In other versions of CW there is a "#pragma interrupt called" to cover this, but the ColdFire compiler doesn't seem to have it.

Outcomes