Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: GCC compiler generates wrong code for interrupt handler routines

2006-01-31 by c.barbaro

Thank you, I'll follow the suggestion since in the near future I want
to use nested interrupts that requires an asm wrapper anyway.
For now I patched the problem using an ISR that performs a call to the
real one that contains the code I need.

--- In lpc2000@yahoogroups.com, 42Bastian Schick <bastian42@m...> wrote:
>
> c.barbaro <c.barbaro@4...> schrieb am Tue, 31 Jan 2006 10:47:41 
> -0000:
> 
> > Anyone experienced similar problems and has a solution?
> 
> I'd suggest to write the ISR wrapper in assembler and call from
> there your ISR.
> This allows you also to write the ISR in thumb mode.
> This is also more compatible if you ever have to switch to another 
> compiler and/or use an RTOS :-)
> 
> -- 
> 42Bastian Schick
>

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.