Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HardwareSerial: Define no-op serialEvent() functions for clang #582

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dakkshesh07
Copy link

No description provided.

GCC automatically resolves weakly defined empty symbols to null if not overridden, but Clang doesn't resolve it this way. This causes undefined reference errors during linking.

To address this, define empty no-op serialEvent() functions that can be overridden later since its weakly defined, ensuring compatibility with Clang and fixing the build issue.
ref: avr-llvm/clang#9

Signed-off-by: Dakkshesh <[email protected]>
@CLAassistant
Copy link

CLAassistant commented Dec 22, 2024

CLA assistant check
All committers have signed the CLA.

Copy link

Memory usage change @ 698ad5d

Board flash % RAM for global variables %
arduino:avr:LilyPadUSB 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:atmegang:cpu=atmega168 💚 -40 - 0 -0.28 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:atmegang:cpu=atmega8 💚 -36 - 0 -0.5 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:bt:cpu=atmega168 💚 -40 - 0 -0.28 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:bt:cpu=atmega328 💚 -40 - 0 -0.14 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:chiwawa 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:circuitplay32u4cat 0 - 0 0.0 - 0.0 0 - 0 N/A
arduino:avr:diecimila:cpu=atmega168 💚 -40 - 0 -0.28 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:diecimila:cpu=atmega328 💚 -40 - 0 -0.13 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:esplora 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:ethernet 💚 -40 - 0 -0.12 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:fio 💚 -40 - 0 -0.13 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:gemma 0 - 0 0.0 - 0.0 0 - 0 N/A
arduino:avr:leonardo 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:leonardoeth 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:lilypad:cpu=atmega168 💚 -40 - 0 -0.28 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:lilypad:cpu=atmega328 💚 -40 - 0 -0.13 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:mega:cpu=atmega1280 💚 -74 - 0 -0.06 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:mega:cpu=atmega2560 💚 -74 - 0 -0.03 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:megaADK 💚 -74 - 0 -0.03 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:micro 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:mini:cpu=atmega168 💚 -40 - 0 -0.28 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:mini:cpu=atmega328 💚 -40 - 0 -0.14 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:nano:cpu=atmega168 💚 -40 - 0 -0.28 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:nano:cpu=atmega328 💚 -40 - 0 -0.13 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:nano:cpu=atmega328old 💚 -40 - 0 -0.13 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:one 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:pro:cpu=16MHzatmega168 💚 -40 - 0 -0.28 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:pro:cpu=16MHzatmega328 💚 -40 - 0 -0.13 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:pro:cpu=8MHzatmega168 💚 -40 - 0 -0.28 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:pro:cpu=8MHzatmega328 💚 -40 - 0 -0.13 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:robotControl 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:robotMotor 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:uno 💚 -40 - 0 -0.12 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:unomini 💚 -40 - 0 -0.12 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:unowifi 💚 -40 - 0 -0.12 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:yun 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:avr:yunmini 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
Click for full report table
Board libraries/EEPROM/examples/eeprom_clear
flash
% libraries/EEPROM/examples/eeprom_clear
RAM for global variables
% libraries/EEPROM/examples/eeprom_iteration
flash
% libraries/EEPROM/examples/eeprom_iteration
RAM for global variables
% libraries/EEPROM/examples/eeprom_update
flash
% libraries/EEPROM/examples/eeprom_update
RAM for global variables
% libraries/EEPROM/examples/eeprom_write
flash
% libraries/EEPROM/examples/eeprom_write
RAM for global variables
% libraries/EEPROM/examples/eeprom_crc
flash
% libraries/EEPROM/examples/eeprom_crc
RAM for global variables
% libraries/EEPROM/examples/eeprom_get
flash
% libraries/EEPROM/examples/eeprom_get
RAM for global variables
% libraries/EEPROM/examples/eeprom_put
flash
% libraries/EEPROM/examples/eeprom_put
RAM for global variables
% libraries/EEPROM/examples/eeprom_read
flash
% libraries/EEPROM/examples/eeprom_read
RAM for global variables
% libraries/SPI/examples/BarometricPressureSensor
flash
% libraries/SPI/examples/BarometricPressureSensor
RAM for global variables
% libraries/SPI/examples/DigitalPotControl
flash
% libraries/SPI/examples/DigitalPotControl
RAM for global variables
% libraries/Wire/examples/SFRRanger_reader
flash
% libraries/Wire/examples/SFRRanger_reader
RAM for global variables
% libraries/Wire/examples/digital_potentiometer
flash
% libraries/Wire/examples/digital_potentiometer
RAM for global variables
% libraries/Wire/examples/i2c_scanner
flash
% libraries/Wire/examples/i2c_scanner
RAM for global variables
% libraries/Wire/examples/master_reader
flash
% libraries/Wire/examples/master_reader
RAM for global variables
% libraries/Wire/examples/master_writer
flash
% libraries/Wire/examples/master_writer
RAM for global variables
% libraries/Wire/examples/slave_receiver
flash
% libraries/Wire/examples/slave_receiver
RAM for global variables
% libraries/Wire/examples/slave_sender
flash
% libraries/Wire/examples/slave_sender
RAM for global variables
% libraries/SoftwareSerial/examples/SoftwareSerialExample
flash
% libraries/SoftwareSerial/examples/SoftwareSerialExample
RAM for global variables
% libraries/SoftwareSerial/examples/TwoPortReceive
flash
% libraries/SoftwareSerial/examples/TwoPortReceive
RAM for global variables
%
arduino:avr:LilyPadUSB 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 0 0.0 0 0.0 0 0.0 0 0.0
arduino:avr:atmegang:cpu=atmega168 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 -32 -0.22 0 0.0 -32 -0.22 0 0.0 -32 -0.22 0 0.0 -34 -0.24 0 0.0 -34 -0.24 0 0.0 0 0.0 0 0.0 -40 -0.28 0 0.0 0 0.0 0 0.0 -40 -0.28 0 0.0 -40 -0.28 0 0.0 0 0.0 0 0.0 -30 -0.21 0 0.0 0 0.0 0 0.0 -30 -0.21 0 0.0 -30 -0.21 0 0.0
arduino: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 -28 -0.39 0 0.0 -28 -0.39 0 0.0 -28 -0.39 0 0.0 -30 -0.42 0 0.0 -30 -0.42 0 0.0 0 0.0 0 0.0 -36 -0.5 0 0.0 0 0.0 0 0.0 -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 0 0.0 0 0.0 -40 -0.28 0 0.0 0 0.0 0 0.0 -40 -0.28 0 0.0 -40 -0.28 0 0.0 0 0.0 0 0.0 -30 -0.21 0 0.0 0 0.0 0 0.0 -30 -0.21 0 0.0 -30 -0.21 0 0.0
arduino:avr:lilypad:cpu=atmega328 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 -32 -0.1 0 0.0 -32 -0.1 0 0.0 -32 -0.1 0 0.0 -34 -0.11 0 0.0 -34 -0.11 0 0.0 0 0.0 0 0.0 -40 -0.13 0 0.0 0 0.0 0 0.0 -40 -0.13 0 0.0 -40 -0.13 0 0.0 0 0.0 0 0.0 -30 -0.1 0 0.0 0 0.0 0 0.0 -30 -0.1 0 0.0 -30 -0.1 0 0.0
arduino:avr:mega:cpu=atmega1280 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 -74 -0.06 0 0.0 -74 -0.06 0 0.0 -74 -0.06 0 0.0 -74 -0.06 0 0.0 -74 -0.06 0 0.0 0 0.0 0 0.0 -74 -0.06 0 0.0 0 0.0 0 0.0 -74 -0.06 0 0.0 -74 -0.06 0 0.0 0 0.0 0 0.0 -74 -0.06 0 0.0 0 0.0 0 0.0 -74 -0.06 0 0.0 -74 -0.06 0 0.0
arduino:avr:mega:cpu=atmega2560 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 -74 -0.03 0 0.0 -74 -0.03 0 0.0 -74 -0.03 0 0.0 -74 -0.03 0 0.0 -74 -0.03 0 0.0 0 0.0 0 0.0 -74 -0.03 0 0.0 0 0.0 0 0.0 -74 -0.03 0 0.0 -74 -0.03 0 0.0 0 0.0 0 0.0 -74 -0.03 0 0.0 0 0.0 0 0.0 -74 -0.03 0 0.0 -74 -0.03 0 0.0
arduino:avr:megaADK 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 -74 -0.03 0 0.0 -74 -0.03 0 0.0 -74 -0.03 0 0.0 -74 -0.03 0 0.0 -74 -0.03 0 0.0 0 0.0 0 0.0 -74 -0.03 0 0.0 0 0.0 0 0.0 -74 -0.03 0 0.0 -74 -0.03 0 0.0 0 0.0 0 0.0 -74 -0.03 0 0.0 0 0.0 0 0.0 -74 -0.03 0 0.0 -74 -0.03 0 0.0
arduino:avr:micro 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 0 0.0 0 0.0 0 0.0 0 0.0
arduino:avr:mini:cpu=atmega168 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 -32 -0.22 0 0.0 -32 -0.22 0 0.0 -32 -0.22 0 0.0 -34 -0.24 0 0.0 -34 -0.24 0 0.0 0 0.0 0 0.0 -40 -0.28 0 0.0 0 0.0 0 0.0 -40 -0.28 0 0.0 -40 -0.28 0 0.0 0 0.0 0 0.0 -30 -0.21 0 0.0 0 0.0 0 0.0 -30 -0.21 0 0.0 -30 -0.21 0 0.0
arduino:avr:mini:cpu=atmega328 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 -32 -0.11 0 0.0 -32 -0.11 0 0.0 -32 -0.11 0 0.0 -34 -0.12 0 0.0 -34 -0.12 0 0.0 0 0.0 0 0.0 -40 -0.14 0 0.0 0 0.0 0 0.0 -40 -0.14 0 0.0 -40 -0.14 0 0.0 0 0.0 0 0.0 -30 -0.1 0 0.0 0 0.0 0 0.0 -30 -0.1 0 0.0 -30 -0.1 0 0.0
arduino:avr:nano:cpu=atmega168 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0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0 0 0.0 0 0.0 0 0.0 0 0.0 -32 -0.22 0 0.0 -32 -0.22 0 0.0 -32 -0.22 0 0.0 -34 -0.24 0 0.0 -34 -0.24 0 0.0 0 0.0 0 0.0 -40 -0.28 0 0.0 0 0.0 0 0.0 -40 -0.28 0 0.0 -40 -0.28 0 0.0 0 0.0 0 0.0 -30 -0.21 0 0.0 0 0.0 0 0.0 -30 -0.21 0 0.0 -30 -0.21 0 0.0
arduino:avr:pro:cpu=16MHzatmega328 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 -32 -0.1 0 0.0 -32 -0.1 0 0.0 -32 -0.1 0 0.0 -34 -0.11 0 0.0 -34 -0.11 0 0.0 0 0.0 0 0.0 -40 -0.13 0 0.0 0 0.0 0 0.0 -40 -0.13 0 0.0 -40 -0.13 0 0.0 0 0.0 0 0.0 -30 -0.1 0 0.0 0 0.0 0 0.0 -30 -0.1 0 0.0 -30 -0.1 0 0.0
arduino:avr:pro:cpu=8MHzatmega168 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 -32 -0.22 0 0.0 -32 -0.22 0 0.0 -32 -0.22 0 0.0 -34 -0.24 0 0.0 -34 -0.24 0 0.0 0 0.0 0 0.0 -40 -0.28 0 0.0 0 0.0 0 0.0 -40 -0.28 0 0.0 -40 -0.28 0 0.0 0 0.0 0 0.0 -30 -0.21 0 0.0 0 0.0 0 0.0 -30 -0.21 0 0.0 -30 -0.21 0 0.0
arduino:avr:pro:cpu=8MHzatmega328 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 -32 -0.1 0 0.0 -32 -0.1 0 0.0 -32 -0.1 0 0.0 -34 -0.11 0 0.0 -34 -0.11 0 0.0 0 0.0 0 0.0 -40 -0.13 0 0.0 0 0.0 0 0.0 -40 -0.13 0 0.0 -40 -0.13 0 0.0 0 0.0 0 0.0 -30 -0.1 0 0.0 0 0.0 0 0.0 -30 -0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 0 0.0 0 0.0 -32 -0.1 0 0.0 -32 -0.1 0 0.0 -32 -0.1 0 0.0 -34 -0.11 0 0.0 -34 -0.11 0 0.0 0 0.0 0 0.0 -40 -0.12 0 0.0 0 0.0 0 0.0 -40 -0.12 0 0.0 -40 -0.12 0 0.0 0 0.0 0 0.0 -30 -0.09 0 0.0 0 0.0 0 0.0 -30 -0.09 0 0.0 -30 -0.09 0 0.0
arduino:avr:yun 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 0 0.0 0 0.0 0 0.0 0 0.0
arduino:avr:yunmini 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 0 0.0 0 0.0 0 0.0 0 0.0
Click for full report CSV
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,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,0,0.0,0,0.0,0,0.0,0,0.0
arduino:avr:atmegang:cpu=atmega168,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,-32,-0.22,0,0.0,-32,-0.22,0,0.0,-32,-0.22,0,0.0,-34,-0.24,0,0.0,-34,-0.24,0,0.0,0,0.0,0,0.0,-40,-0.28,0,0.0,0,0.0,0,0.0,-40,-0.28,0,0.0,-40,-0.28,0,0.0,0,0.0,0,0.0,-30,-0.21,0,0.0,0,0.0,0,0.0,-30,-0.21,0,0.0,-30,-0.21,0,0.0
arduino: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,-28,-0.39,0,0.0,-28,-0.39,0,0.0,-28,-0.39,0,0.0,-30,-0.42,0,0.0,-30,-0.42,0,0.0,0,0.0,0,0.0,-36,-0.5,0,0.0,0,0.0,0,0.0,-36,-0.5,0,0.0,-36,-0.5,0,0.0,0,0.0,0,0.0,-26,-0.36,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,0,0.0,0,0.0,0,0.0,0,0.0,-32,-0.22,0,0.0,-32,-0.22,0,0.0,-32,-0.22,0,0.0,-34,-0.24,0,0.0,-34,-0.24,0,0.0,0,0.0,0,0.0,-40,-0.28,0,0.0,0,0.0,0,0.0,-40,-0.28,0,0.0,-40,-0.28,0,0.0,0,0.0,0,0.0,-30,-0.21,0,0.0,0,0.0,0,0.0,-30,-0.21,0,0.0,-30,-0.21,0,0.0
arduino:avr:bt:cpu=atmega328,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,-32,-0.11,0,0.0,-32,-0.11,0,0.0,-32,-0.11,0,0.0,-34,-0.12,0,0.0,-34,-0.12,0,0.0,0,0.0,0,0.0,-40,-0.14,0,0.0,0,0.0,0,0.0,-40,-0.14,0,0.0,-40,-0.14,0,0.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-0.06,0,0.0,-74,-0.06,0,0.0,-74,-0.06,0,0.0,-74,-0.06,0,0.0,-74,-0.06,0,0.0,0,0.0,0,0.0,-74,-0.06,0,0.0,0,0.0,0,0.0,-74,-0.06,0,0.0,-74,-0.06,0,0.0,0,0.0,0,0.0,-74,-0.06,0,0.0,0,0.0,0,0.0,-74,-0.06,0,0.0,-74,-0.06,0,0.0
arduino:avr:mega:cpu=atmega2560,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,-74,-0.03,0,0.0,-74,-0.03,0,0.0,-74,-0.03,0,0.0,-74,-0.03,0,0.0,-74,-0.03,0,0.0,0,0.0,0,0.0,-74,-0.03,0,0.0,0,0.0,0,0.0,-74,-0.03,0,0.0,-74,-0.03,0,0.0,0,0.0,0,0.0,-74,-0.03,0,0.0,0,0.0,0,0.0,-74,-0.03,0,0.0,-74,-0.03,0,0.0
arduino:avr:megaADK,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,-74,-0.03,0,0.0,-74,-0.03,0,0.0,-74,-0.03,0,0.0,-74,-0.03,0,0.0,-74,-0.03,0,0.0,0,0.0,0,0.0,-74,-0.03,0,0.0,0,0.0,0,0.0,-74,-0.03,0,0.0,-74,-0.03,0,0.0,0,0.0,0,0.0,-74,-0.03,0,0.0,0,0.0,0,0.0,-74,-0.03,0,0.0,-74,-0.03,0,0.0
arduino:avr:micro,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,0,0.0,0,0.0,0,0.0,0,0.0
arduino:avr:mini:cpu=atmega168,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,-32,-0.22,0,0.0,-32,-0.22,0,0.0,-32,-0.22,0,0.0,-34,-0.24,0,0.0,-34,-0.24,0,0.0,0,0.0,0,0.0,-40,-0.28,0,0.0,0,0.0,0,0.0,-40,-0.28,0,0.0,-40,-0.28,0,0.0,0,0.0,0,0.0,-30,-0.21,0,0.0,0,0.0,0,0.0,-30,-0.21,0,0.0,-30,-0.21,0,0.0
arduino:avr:mini:cpu=atmega328,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,-32,-0.11,0,0.0,-32,-0.11,0,0.0,-32,-0.11,0,0.0,-34,-0.12,0,0.0,-34,-0.12,0,0.0,0,0.0,0,0.0,-40,-0.14,0,0.0,0,0.0,0,0.0,-40,-0.14,0,0.0,-40,-0.14,0,0.0,0,0.0,0,0.0,-30,-0.1,0,0.0,0,0.0,0,0.0,-30,-0.1,0,0.0,-30,-0.1,0,0.0
arduino:avr:nano:cpu=atmega168,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,-32,-0.22,0,0.0,-32,-0.22,0,0.0,-32,-0.22,0,0.0,-34,-0.24,0,0.0,-34,-0.24,0,0.0,0,0.0,0,0.0,-40,-0.28,0,0.0,0,0.0,0,0.0,-40,-0.28,0,0.0,-40,-0.28,0,0.0,0,0.0,0,0.0,-30,-0.21,0,0.0,0,0.0,0,0.0,-30,-0.21,0,0.0,-30,-0.21,0,0.0
arduino:avr:nano:cpu=atmega328,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,-32,-0.1,0,0.0,-32,-0.1,0,0.0,-32,-0.1,0,0.0,-34,-0.11,0,0.0,-34,-0.11,0,0.0,0,0.0,0,0.0,-40,-0.13,0,0.0,0,0.0,0,0.0,-40,-0.13,0,0.0,-40,-0.13,0,0.0,0,0.0,0,0.0,-30,-0.1,0,0.0,0,0.0,0,0.0,-30,-0.1,0,0.0,-30,-0.1,0,0.0
arduino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:yunmini,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,0,0.0,0,0.0,0,0.0,0,0.0

@matthijskooijman
Copy link
Collaborator

Looks ok to me. Did you verify this still works as expected on gcc (with and without a user serialEvent detected)?

@dakkshesh07
Copy link
Author

dakkshesh07 commented Dec 23, 2024

Looks ok to me. Did you verify this still works as expected on gcc (with and without a user serialEvent detected)?

The patch was successfully tested with GCC in Arduino ide, both with and without a user-defined serialEvent. The functionality works as expected in both cases.

Test code:

void setup() {
  Serial.begin(9600);
  Serial.println("Testing serialEvent()");
}

void loop() {
  if (Serial.available()) {
    Serial.println("Processing data in serialEvent()");
  }
  delay(1000);
}

void serialEvent() {
  while (Serial.available()) {
    char c = Serial.read();
    Serial.print("Received: ");
    Serial.println(c);
  }
}

The code compiled perfectly and i was able to test it out with Serial monitor.

A slight flash size reduction was observed when compiling code without a user-defined serialEvent function. This occurs because GCC now identifies the weak symbols as explicitly defined no-ops, allowing for more aggressive dead code elimination.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants