From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Earnshaw To: Philip Blundell Cc: Yves Rutschle , "'Jens-Christian Lache'" , "'crossgcc@sources.redhat.com'" , Richard.Earnshaw@arm.com Subject: Re: gcc compile Date: Sun, 01 Apr 2001 00:00:00 -0000 Message-ID: <200101231017.KAA28604@cam-mail2.cambridge.arm.com> References: X-SW-Source: 2001-q1/msg00205.html Message-ID: <20010401000000.fg34jm0aDRcYWBg_ziFoFC8cPKphHA-6fVV41DdBGDs@z> > >I don't think you can create a whole swi handler in C (unless > >gcc has extensions I don't know about. the arm C doesn't > >anyway). > > You could try `__attribute__ (( interrupt ("SWI")))' with GCC. This should > suffice for very simple handlers, though you will still need to write in > assembler for anything more sophisticated. > This is new in the CVS version; it wasn't in 2.95.x (at least, if it was, it probably didn't work very well). R. ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com