URL:
<http://savannah.nongnu.org/bugs/?50987>
Summary: Not all registers need to be declared volatile
Project: AVR C Runtime Library
Submitted by: e_l_tang
Submitted on: Tue 09 May 2017 08:20:25 PM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Percent Complete: 0%
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 2.0.0
Fixed Release: None
_______________________________________________________
Details:
Many registers are no different from a global 8-bit variables in that they
will always contain the values which were last written to them. The compiler
will be able to better optimize code which accesses them if they are not
declared volatile.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?50987>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
_______________________________________________
AVR-libc-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev