Yahoo Groups archive

Lpc2000

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

Message

Re: GCC-3.3.1 and nested function call in ISR - compiler ERROR???

2006-02-27 by arrek_x

--- In lpc2000@yahoogroups.com, "c.barbaro" <c.barbaro@...> wrote:
>
> I don't know if the problem is fixed with GCC 3.4 but surely is not 
in
> version 4.0.2.
> I installed the GNUARM toolchain 4.0.2 to solve these problems but
> experienced the same type of errors as in 3.0.1.
> For me the best thing to do is to encapsulate the C interrupt 
handler
> in an assembly code wrapper avoiding the use of "IRQ" attribute.
> 
> Carlo
>

Like they say, "if you want something to be done well, do it yourself"
 :). But in my specific example, with GCC-4.0.1 I didn't meet problem 
I desribed. It's possible, that the problem hasn't been complitely 
solved, but I hope it has.
In my case, with GCC-3.3.1 compiler puts ISR's local variable (val) 45 
bytes below ISR's Frame Pointer (on teh stack), where ISR's frame's 
length equals 40 bytes.
With GCC-4.0.1 offset equals 37 bytes instead 45 (ISR's frame lengt 
still equals 40 bytes).

Arek

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.