Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

RE: [AVR-Chat] Re: Help: volatile variable versus volatile array for ISR access

2007-11-05 by Robert Adsett

At 07:37 PM 11/4/2007 -0700, Cat C wrote:
>That's true, but I think it's also true that as things are upgraded, things
>and bugs get fixed...

Or just change.  The trouble I have is you appear to have no way of telling 
whether the change in behaviour is the result of a bug fix,  a modified 
library function or just different code generation.

I've seen my share of compiler bugs (one compiler I used, I was always 
using a beta because I kept hitting bugs in the release compiler) but more 
often when suspicion was cast on the compiler the source was at fault.

OTOH I don't use architecture specific compiler extensions like inline 
assembly and interrupt qualifiers if I can avoid it (and with a decent 
compiler you can) simply because I've found them to be too unreliable to be 
relied upon.

One compiler had the behaviour that if ragged as re-entrant made all the 
local variables static!  Some one had decided that re-entrant meant that 
the routine would never be called more than once in a call chain (or from 
multiple threads).


>The (maybe) worse thing is (and I think I have a case) when something ONLY
>works with an older tool... I think that's why I downgraded in the first
>place...

I've seen that on occasion, rarely on a compiler (except perhaps for 
architecture extensions), usually it was traceable back relying on 
unspecified compiler behaviour.  Occasionally on a vendors decision to 
change how a utility worked.  After all why should the command line 
arguments remain the same between versions?

>Thanks again for your help, everybody

Your welcome, although I don't think we did much other than ask endless 
questions.

Robert

http://www.aeolusdevelopment.com/

 From the Divided by a Common Language File (Edited to protect the guilty)
ME - "I'd like to get Price and delivery for connector Part # XXXXX"
Dist./Rep - "$X.XX Lead time 37 days"
ME - "Anything we can do about lead time?  37 days seems a bit high."
Dist./Rep - "that is the lead time given because our stock is live.... we 
currently have stock."

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.