Timeline for Can I use [[__progmem__]] instead of PROGMEM?
Current License: CC BY-SA 4.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 6, 2023 at 6:47 | comment | added | the busybee | And the macro approach has the nice effect that you can provide a macro without replacement text for systems that do not support such attributes, for example if you simulate on a PC. | |
| Oct 4, 2023 at 15:39 | comment | added | Edgar Bonet |
Re “it doesn't help with Portability”: According to the documentation of PROGMEM, “These functions are an attempt to provide some compatibility with header files that come with IAR C, to make porting applications between different compilers easier.” I doubt PROGMEM could be a lot more portable than that. How many C compilers (let alone C++) support the AVR architecture? How many of those support keeping constants in flash memory?
|
|
| Oct 4, 2023 at 14:45 | history | answered | Thomas Weller | CC BY-SA 4.0 |