[PATCH] D115987: [AVR][MC] Generate section '.progmemX.data' for extended flash banks
Ben Shi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 2 04:04:05 PST 2022
benshi001 added a comment.
Some design notes
1. Input address space 1 corresponds to `__flash` (ordinrary flash < 64KB), addrspace 2 -> `__flash1` (extended program memory bank1, 64-128KB), ..., addrspace 6 -> `__flash5` (extended program memory bank 5, 320KB-384KB). And all other addrspaces fall back to SRAM.
2. For MCU with neither FeatureLPM nor FeatureELPM, all input address spaces fall back to SRAM, and no LPM/ELPM instruction will be generated.
3. For MCU with only FeatureLPM but not FeatureELPM, all access to address space 2-6 fall back to ordinary program space (0-64KB), and only LPM will be generated, and no ELPM will be generated.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115987/new/
https://reviews.llvm.org/D115987
More information about the llvm-commits
mailing list