This is the mail archive of the gcc@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]

__attribute__ ((interrupt)) for m68k


I'm still evaluating gcc targeting m68k and have come across something else:
It does not seem to support __attribute__ ((interrupt)) which is used to
define a function as an interrupt routine so that the compiler can generate
the correct prologue/epilogue code (in this case at least an RTE). How does
one write an interrupt routine in C for this target in a nice fashion? (This
is egcs-1.1.2 - I haven't built 2.95.2 yet, but I'm guessing it hasn't
changed).

Also, anyone know why __attribute__ ((section ("name") )) on a variable is
ignored if it is uninitialised? What is the rational behind this? In our
project we have a non-volatile RAM section which we treat as BSS at present,
so it would be annoying to have to explicitly initialise things to get them
in there (an array of structs would be ugly).

Thanks again.

Paul Andrews
Software Engineer
Smartmove (NZ) Ltd
Auckland, New Zealand
http://www.smartmove.co.nz


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