Timeline for Are global variables evil in Arduino?
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 11, 2017 at 22:51 | comment | added | underscore_d | The problem isn't really finding the declaration; being able to quickly understand the code is important but ultimately secondary to what it does - and there the real problem is finding which varmint in which unknown part of your code is able to use the global declaration to do weird things with an object you left out in the open for everyone to do whatever they want with. | |
| Jul 11, 2017 at 15:21 | review | First posts | |||
| Jul 11, 2017 at 15:22 | |||||
| Jul 11, 2017 at 15:21 | comment | added | Edgar Bonet | On AVR, globals are on RAM, whereas most non-static locals are allocated to CPU registers, which makes their access faster. | |
| Jul 11, 2017 at 15:17 | history | answered | BOC | CC BY-SA 3.0 |