This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
__attribute__ ((interrupt)) for m68k
- To: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- Subject: __attribute__ ((interrupt)) for m68k
- From: Paul Andrews <paul dot andrews at smartmove dot co dot nz>
- Date: Wed, 24 Nov 1999 15:30:59 +1300
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