avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Avr-gcc Produces Incorrect Code with -Os


From: Anatoly Sokolov
Subject: Re: [avr-gcc-list] Avr-gcc Produces Incorrect Code with -Os
Date: Thu, 22 May 2008 21:08:30 +0400

Hi.

> An alternative way to handle this sort of thing would be to implement a 
> "critical" function attribute like in the msp430 port of gcc - a 
> function with this attribute has interrupts disabled at the start, and 
> restored at the end.  

  It will work for for tiny and mega devices, but xmega devices have 
Non-Maskable Interrupts, and clearing of the I-bit does not guarantee 
full continuity execution of a code.

 I shall make a patch for "critical" attribute.

Anatoly.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]