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]

Re: EGCS: Interrupt Support ?



  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


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