avr-libc-dev
[Top][All Lists]
Advanced

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

AW: AW: [avr-libc-dev] eeprom_read_word causes problems for the compiler


From: Haase Bjoern (PT/EMM1)
Subject: AW: AW: [avr-libc-dev] eeprom_read_word causes problems for the compiler
Date: Tue, 16 Oct 2007 16:17:53 +0200

>> I fear that this will not be guaranteed to be correct! The compiler
>> might reorder code and might be tempted to optimize away your result
>> variable so that it could be placed in another register. The
dangerous
>> thing is, that your code might work sometimes!
>
>
>I was afraid so, but I look it up in the GCC documentation
>
>So it seems to me that it used as it was intended. So I think it's
legal 
>after all.
>
>HTH,
>
>Wouter

Good point! I now agree with you :-).

Yours,

Bjoern.







reply via email to

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