Getting GCC to generate m68k RTE instruction
Jerry Hicks
jhicks@glenatl.glenayre.com
Thu Mar 19 16:30:00 GMT 1998
Matthew Majka wrote:
>
> Hi all,
>
> Target m68k-coff (MC68360)
>
> Is there are way to tell GCC to use an RTE instruction, instead of RTS, at the
> end of a function used as an interrupt handler? A pragma perhaps?
>
> Thanx,
>
> Matt
>
> --
> __________________________________
> Matthew Majka - Software Engineer
> Honeywell Defense Avionics Systems
> Albuquerque, New Mexico, USA
We typically code a wrapper function which uses inline assembler to create a label (for
the interrupt vector) and the RTE instruction.
This wrapper calls our handler, coded in C. The C prolog and epilog of the wrapper aren't
executed.
Good Luck,
Jerry Hicks
jhicks@glenatl.glenayre.com
More information about the crossgcc
mailing list