Mail Archives: djgpp-workers/1999/05/27/03:29:20
On Wed, 26 May 1999, Shawn Hargreaves wrote:
> Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> writes:
> > My suggestion was meant to be a replacement for the mandatory use of
> > the library wrappers. I think saying "#pragma interrupt" is easier
> > than throwing in all the code to call the wrapper
>
> That is certainly true. Surely gcc would use an __attribute__ for this
> rather than a #pragma, though? Judging from the info pages, the gcc
> developers don't like #pragma very much
This is probably so, although with the recent changes in GCC
development team it remains to be seen how strong these views are.
My thinking about #pragma was triggered by the fact that it is
*already* supported by GCC for certain CPUs. Clearly, adding support
for an existing feature will have less trouble getting into the
official release than inventing a new feature.
But if GCC supports something like __attribute__((interrupt)), then I
agree we should go for that. I'm not privy enough to GCC/EGCS
developments to know whether in fact such an attribute exists.
- Raw text -