avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] RFC gcc multiple memory space implementation


From: Julius Luukko
Subject: Re: [avr-gcc-list] RFC gcc multiple memory space implementation
Date: Thu, 29 Apr 2004 12:00:23 +0300
User-agent: KMail/1.4.3

On Thursday 29 April 2004 11:37, David Brown wrote:
> Are strings going to be automatically put in the program memory address
> space?  That would normally make the most sense, but it would break direct
> usage of strings in something like printf - programmers would have to write
> printf_P("Error !") to get the types correct.  

Hello all,

Quoting the standard draft from Section 3.1.1 "Additional address spaces":

"When not specified otherwise, objects are allocated by default in a generic 
address space, which corresponds to the single address space of ISO/IEC 
9899:1999."

and from Section 3.1.4 "Standard library support"

"The standard C library (ISO/IEC 9899:1999 clause 7 - Libraries) is unchanged; 
the library's functions and objects continue to be declared only with regard 
to the generic address space."

These quite directly say that string should and would still be put in data 
memory by default.

-- 
D.Sc. Julius Luukko
Laboratory of Control Engineering/Department of Electrical Engineering
Lappeenranta University of Technology, FINLAND
phone:+358-5-621 6713, fax:+358-5-621 6799, www: http://www.ee.lut.fi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]