[AVR] Large const lookup table is placed in data section #134731
Labels
C-bug
Category: This is a bug.
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
O-AVR
Target: AVR processors (ATtiny, ATmega, etc.)
When compiling for AVR, large const lookup table is placed in data section, wasting precious RAM.
Code in question:
Target spec:
I expected to see this happen: Table is placed into Flash ROM, flash read instructions are used to access data.
Instead, this happened: Table is placed into RAM.
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: