|
From: | Eric Tang |
Subject: | [avr-libc-dev] [bug #50987] Not all registers need to be declared volatile |
Date: | Tue, 9 May 2017 16:20:26 -0400 (EDT) |
User-agent: | Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36 |
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/
[Prev in Thread] | Current Thread | [Next in Thread] |