-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add compiler support for AVR architecture (Arduino) #14393
Add compiler support for AVR architecture (Arduino) #14393
Commits on Apr 21, 2024
-
Experimental support for AVR architectures (Arduino)
Add support for the `avr-unknown-unknown` target to the compiler, which enables the LLVM AVR target when available (should be compiled in by default). Implement the ABI, following the AVR GCC call convention, hence extern C libraries must be compiled with AVR GCC (clang is buggy when passing of returning some structs). The ABI is experimental, and only basic calls have been verified against the same calls made by AVR GCC so far. Both regular and "reduced tiny" cores (with less registers) are supported.
Configuration menu - View commit details
-
Copy full SHA for 1eeaddf - Browse repository at this point
Copy the full SHA 1eeaddfView commit details -
AVR: declare CPU as compiler flag
This allows to know actual support for some features, for example which pins are available.
Configuration menu - View commit details
-
Copy full SHA for 249d1a8 - Browse repository at this point
Copy the full SHA 249d1a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d1b6d3 - Browse repository at this point
Copy the full SHA 8d1b6d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for f5720d7 - Browse repository at this point
Copy the full SHA f5720d7View commit details -
Add Program#alignment_byte_width
Don't hardcode the alignment to 4 or 8 when the actual value depends on the actual target (e.g. it's always 1 for AVR targets).
Configuration menu - View commit details
-
Copy full SHA for 2ed514a - Browse repository at this point
Copy the full SHA 2ed514aView commit details -
Revert "Add Program#alignment_byte_width"
This reverts commit f1b5feb.
Configuration menu - View commit details
-
Copy full SHA for 295bd57 - Browse repository at this point
Copy the full SHA 295bd57View commit details -
AVR: improve build integration
- Automatically link the executable program; - Set file extension to ".elf" instead of none; - Require CPU model (--mcpu) that impacts the ABI, codegen & linker
Configuration menu - View commit details
-
Copy full SHA for 56f453b - Browse repository at this point
Copy the full SHA 56f453bView commit details
Commits on Apr 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1a69b7b - Browse repository at this point
Copy the full SHA 1a69b7bView commit details
Commits on Apr 30, 2024
-
Co-authored-by: Sijawusz Pur Rahnama <sija@sija.pl>
Configuration menu - View commit details
-
Copy full SHA for 9a8f8fb - Browse repository at this point
Copy the full SHA 9a8f8fbView commit details