public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* asking new feature
@ 2008-10-22  9:35 Fenyvesi Tamás
  0 siblings, 0 replies; only message in thread
From: Fenyvesi Tamás @ 2008-10-22  9:35 UTC (permalink / raw)
  To: gcc-bugs

Hi,

I'm trying to ask a new feature for gcc rater than reporting bugs now...
Missing this feature is more pressing on flash type microcontroller platforms like (more and more types of) low pin count ARM core (ARM7, Cortex-M3), Atmel/AVR and similars. However, more or less all the embedded area is involved.

It's known it's suboptimal to duplicate string constants at RAM for runtime. The main reason for my using iccavr rather than avrgcc is the ugly form of "sprintf(buf,PSTR("StringInProgramstore"));" instead of regular "sprintf(buf,"StringInProgramstore"));".

It would be very easy to remove this drawback by having some command line switch (tickbox on GUI's) arranging the default storage for string constants. Tick box name can be e.g. "strings remain in program store" or "strings in program store only".

This problem belongs to Harward/Neumann architecture difference rather than using nonvolatile memories so it might be benefical for any non-flash type (but still Harward) processors like DSP's, OMAP, etc. as well.


What about including this feature in mainline gcc?


Best regards,

Tamas



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-22  9:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-22  9:35 asking new feature Fenyvesi Tamás

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).