This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

REQUEST: interrupt attribute for -m68k targets


Hello,
    First off, I must say that I am very pleased with the egcs m68k
cross compiler.  It took me a few evenings to port my old MRI 4.2 m68kcc
code over to your cross compiler.  Great documentation!

   As far as I can tell there is no support for the interrupt (or
interrupt_handler) attribute on m68k targets.  So my options are:

1. create an asm file to do the a0-a1/d0-d1 register save, call the "c"
interrupt handler routine, restore a0-a1/d0-d1 and then do the RTI.
or
2. use the asm command to assemble the proper cleanup and RTI into the
"c" interrupt handler routine.

In option one, I'm assuming that all "c" routines assume that
a0-a1/d0-d1 are always available for use and don't usually need to be
backed-up before use. (this is the way the MRI compiler worked)

So... Would you please implement the interrupt attribute for m68k
targets?
Do you know of a cleaner way to support interrupt service routines in
"c" if the interrupt attribute is not available?

Thanks again for all the great work on egcs-gcc,

-Scott


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]