Board,libraries/EEPROM/examples/eeprom_clear<br>flash,%,libraries/EEPROM/examples/eeprom_clear<br>RAM for global variables,%,libraries/EEPROM/examples/eeprom_iteration<br>flash,%,libraries/EEPROM/examples/eeprom_iteration<br>RAM for global variables,%,libraries/EEPROM/examples/eeprom_update<br>flash,%,libraries/EEPROM/examples/eeprom_update<br>RAM for global variables,%,libraries/EEPROM/examples/eeprom_write<br>flash,%,libraries/EEPROM/examples/eeprom_write<br>RAM for global variables,%,libraries/EEPROM/examples/eeprom_crc<br>flash,%,libraries/EEPROM/examples/eeprom_crc<br>RAM for global variables,%,libraries/EEPROM/examples/eeprom_get<br>flash,%,libraries/EEPROM/examples/eeprom_get<br>RAM for global variables,%,libraries/EEPROM/examples/eeprom_put<br>flash,%,libraries/EEPROM/examples/eeprom_put<br>RAM for global variables,%,libraries/EEPROM/examples/eeprom_read<br>flash,%,libraries/EEPROM/examples/eeprom_read<br>RAM for global variables,%,libraries/SPI/examples/BarometricPressureSensor<br>flash,%,libraries/SPI/examples/BarometricPressureSensor<br>RAM for global variables,%,libraries/SPI/examples/DigitalPotControl<br>flash,%,libraries/SPI/examples/DigitalPotControl<br>RAM for global variables,%,libraries/Wire/examples/SFRRanger_reader<br>flash,%,libraries/Wire/examples/SFRRanger_reader<br>RAM for global variables,%,libraries/Wire/examples/digital_potentiometer<br>flash,%,libraries/Wire/examples/digital_potentiometer<br>RAM for global variables,%,libraries/Wire/examples/i2c_scanner<br>flash,%,libraries/Wire/examples/i2c_scanner<br>RAM for global variables,%,libraries/Wire/examples/master_reader<br>flash,%,libraries/Wire/examples/master_reader<br>RAM for global variables,%,libraries/Wire/examples/master_writer<br>flash,%,libraries/Wire/examples/master_writer<br>RAM for global variables,%,libraries/Wire/examples/slave_receiver<br>flash,%,libraries/Wire/examples/slave_receiver<br>RAM for global variables,%,libraries/Wire/examples/slave_sender<br>flash,%,libraries/Wire/examples/slave_sender<br>RAM for global variables,%,libraries/SoftwareSerial/examples/SoftwareSerialExample<br>flash,%,libraries/SoftwareSerial/examples/SoftwareSerialExample<br>RAM for global variables,%,libraries/SoftwareSerial/examples/TwoPortReceive<br>flash,%,libraries/SoftwareSerial/examples/TwoPortReceive<br>RAM for global variables,%arduino:avr:LilyPadUSB,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0arduino:avr:atmegang:cpu=atmega168,0,0.0,0,0.0,0,0.0,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0arduino:avr:atmegang:cpu=atmega8,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,,,,,,,,arduino:avr:bt:cpu=atmega168,0,0.0,0,0.0,0,0.0,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0arduino:avr:bt:cpu=atmega328,0,0.0,0,0.0,0,0.0,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0arduino:avr:chiwawa,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0arduino:avr:circuitplay32u4cat,2,0.01,0,N/A,2,0.01,0,N/A,2,0.01,0,N/A,2,0.01,0,N/A,2,0.01,0,N/A,2,0.01,0,N/A,2,0.01,0,N/A,2,0.01,0,N/A,2,0.01,0,N/A,2,0.01,0,N/A,2,0.01,0,N/A,2,0.01,0,N/A,2,0.01,0,N/A,2,0.01,0,N/A,2,0.01,0,N/A,2,0.01,0,N/A,2,0.01,0,N/A,2,0.01,0,N/A,2,0.01,0,N/Aarduino:avr:diecimila:cpu=atmega168,0,0.0,0,0.0,0,0.0,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,0,0.0,0,0.0,0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,0,N/A,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,arduino:avr:leonardo,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0arduino:avr:leonardoeth,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0arduino:avr:lilypad:cpu=atmega168,0,0.0,0,0.0,0,0.0,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0arduino:avr:lilypad:cpu=atmega328,0,0.0,0,0.0,0,0.0,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,0,0.0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0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0arduino:avr:pro:cpu=8MHzatmega328,0,0.0,0,0.0,0,0.0,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0arduino:avr:robotControl,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,,,,,,,,arduino:avr:robotMotor,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,,,,,,,,arduino:avr:uno,0,0.0,0,0.0,0,0.0,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0arduino:avr:unomini,0,0.0,0,0.0,0,0.0,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0arduino:avr:unowifi,0,0.0,0,0.0,0,0.0,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0arduino:avr:yun,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0arduino:avr:yunmini,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0,2,0.01,0,0.0
The critical section in
micros()
is longer than it needs to be. The interrupt flag register has to be read within the critical section, but testing whether the overflow count should be incremented can be done with interrupts enabled.Without this pull request, compiling for an UNO I get this critical section:
With the pull request applied, this becomes:
which saves us between 2 and 7 cycles of critical section.