From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18705 invoked by alias); 22 Oct 2008 09:35:14 -0000 Received: (qmail 18696 invoked by uid 22791); 22 Oct 2008 09:35:14 -0000 X-Spam-Check-By: sourceware.org Received: from mail.interware.hu (HELO mail.interware.hu) (195.70.32.130) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 22 Oct 2008 09:34:34 +0000 Received: from [195.70.49.93] (helo=LehelGw.mobiline.hu) by mail.interware.hu with esmtp (Exim 4.68) id 1Ksa8E-0004d6-QX for ; Wed, 22 Oct 2008 11:35:59 +0200 Received: from mobiline.hu ([10.0.0.1]) by LehelGw.mobiline.hu with esmtp (Exim 4.50) id 1Ksa6m-00089y-BV for gcc-bugs@gcc.gnu.org; Wed, 22 Oct 2008 11:34:29 +0200 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Date: Wed, 22 Oct 2008 09:35:00 -0000 Message-ID: <7C6936023BFEEE40BB5FD1AAF287DA614A2ADF@mobilineserver.MOBILINE.local> From: =?iso-8859-2?Q?Fenyvesi_Tam=E1s?= To: X-SA-Exim-Connect-IP: 10.0.0.1 X-SA-Exim-Mail-From: tom@mobiline.hu Subject: asking new feature X-SA-Exim-Version: 4.2 (built Thu, 03 Mar 2005 10:44:12 +0100) X-SA-Exim-Scanned: Yes (on LehelGw.mobiline.hu) Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-10/txt/msg01425.txt.bz2 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 platfor= ms 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 invo= lved. 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 o= f "sprintf(buf,PSTR("StringInProgramstore"));" instead of regular "sprintf(= buf,"StringInProgramstore"));". It would be very easy to remove this drawback by having some command line s= witch (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 i= n 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