[Bug target/71948] New: [avr] Make progmem work on reduced Tiny cores by adding 0x4000 to symbols
gjl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 20 14:01:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71948
Bug ID: 71948
Summary: [avr] Make progmem work on reduced Tiny cores by
adding 0x4000 to symbols
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: gjl at gcc dot gnu.org
Target Milestone: ---
The reduced tiny cores feature reading from flash: The flash memory can be
seen in the RAM address range at an offset starting at 0x4000.
Hence progmem can be used to put data into flash and to generate the correct
accesses without the need of special functions (like pgm_read_* which is needed
on generic core). This can easily be achieved by adding 0x4000 to the value of
symbols.
More information about the Gcc-bugs
mailing list