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-25 by arrek_x

--- In lpc2000@yahoogroups.com, "Karl Olsen" <kro@...> wrote:
> Are you using the compiler's interrupt entry/exit code, such as
> void EINT0ISR(void) __attribute__ ((interrupt("IRQ")));
> ?

yes

> GCC 3.3 generates incorrect interrupt entry/exit code, and that is 
most 
> likely what you see here.  It is fixed in GCC 3.4 and newer.
> 
> Karl Olsen
>

You're surely right, I've read about this problem earlier on this 
group and it is probably the reason. But the reason of posting this 
topis was, that I have noticed, that asm entry code seems to be the 
same for 3.3 and 4.0 gcc versions. The difference is location of some 
ISR's local variables on the stack in place, where another function's 
frame is situated. But probalby it is related to an error you have 
described.

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.