This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: EGCS: Interrupt Support ?
- To: Brendan Simon <brendan at dgs dot monash dot edu dot au>
- Subject: Re: EGCS: Interrupt Support ?
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 30 Nov 1998 00:55:35 -0700
- cc: egcs mailing list <egcs at cygnus dot com>
- Reply-To: law at cygnus dot com
In message <3662351F.1ADAD83A@dgs.monash.edu.au>you write:
> This is a multi-part message in MIME format.
> --------------995940B367E7C4AD71A30AAE
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
>
> Since egcs is supposed to a better cross-compiler for embedded systems,
> I was wondering whether the "interrupt" keyword or "#pragma interrupt"
> is ever going to be supported. I can not see any reason why it
> shouldn't. It would make life a lot easier than having to write
> assembler level stubs. It would also make writing portable code a lot
> easier.
>
> There may be reasons why interrupt support is not a good idea but I do
> not know them. If anyone can shed some light on this matter then I
> would appreciate it.
There are interrupt attributes for some targets. It's a feature that has to
be implemented for each target. Thus some targets have support for it, others
do not.
We recommend against using pragmas. attributes are a cleaner way to
accomplish what you are trying to do.
jeff