public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* AVR __progmem__ variable reading
@ 2019-02-22 22:34 Łukasz Kostka
  2019-02-23 15:34 ` David Brown
  0 siblings, 1 reply; 12+ messages in thread
From: Łukasz Kostka @ 2019-02-22 22:34 UTC (permalink / raw)
  To: gcc

Hi

I am using for a while now gcc and especially __progmem__ attribute. I’d like to report a feature request for gcc to handle reading from flash memory variables. Compiler has all the knowledge (target device, availability of LPM, ELPM instructions etc.) in order to properly interpret variable is accessed (eg. by array subscription).

This would remove need for any assembly code written to do this.
Make user code much cleaner.
GCC having all this knowledge can optimize end assembly code.
Simple attribute addition will switch from array in memory to array in flash.
Can serve as future implementations for other platforms.

What do you think ?


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-02-26  6:05 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-22 22:34 AVR __progmem__ variable reading Łukasz Kostka
2019-02-23 15:34 ` David Brown
2019-02-23 18:38   ` Łukasz Kostka
2019-02-24 11:13     ` David Brown
2019-02-24 13:47       ` Łukasz Kostka
2019-02-24 13:58         ` David Brown
2019-02-24 17:29           ` Łukasz Kostka
2019-02-25  7:43             ` David Brown
2019-02-25 17:09               ` Łukasz Kostka
2019-02-25 17:19                 ` David Brown
2019-02-25 19:32                   ` Łukasz Kostka
2019-02-26  6:05                   ` SenthilKumar.Selvaraj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).