[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] AVR-GCC question
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] AVR-GCC question |
Date: |
Mon, 23 May 2005 06:53:18 +0200 (MET DST) |
"Daniel O'Connor" <address@hidden> wrote:
> I think the fundamental problem is that C wasn't designed for
> split architectures like the AVR so you are forced into using
> hacks to get it to work.
Exactly. There's so far no standardized way to handle multiple memory
spaces, only a standard proposal. Even there, the default memory
space must be compatible with the standard functions (like those from
string.h), so unless the default memory space uses something like a
`generic pointer' model (IOW, late binding where the actual physical
memory space is only decided about at run-time), it's still not
possible to default string literals to ROM.
> ie on say, a HC12, none of this is an issue because it behaves much
> more like a "normal" system.
Same for the TI MSP430 controller.
The C standard always (*) allowed it to have string literals in
read-only memory locations, but they need to be compatible with the
respective standard library functions, as well as with other string
objects in RAM.
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)
- [avr-gcc-list] AVR-GCC question, James A. Kinnard, 2005/05/20
- Re: [avr-gcc-list] AVR-GCC question, Parthasaradhi Nayani, 2005/05/20
- Re: [avr-gcc-list] AVR-GCC question, Parthasaradhi Nayani, 2005/05/21
- Re: [avr-gcc-list] AVR-GCC question, hanzl, 2005/05/22
- Re: [avr-gcc-list] AVR-GCC question,
Joerg Wunsch <=
- Re: [avr-gcc-list] AVR-GCC question, Daniel O'Connor, 2005/05/23
- Re: [avr-gcc-list] AVR-GCC question, E. Weddington, 2005/05/23
- Re: [avr-gcc-list] AVR-GCC question, Joerg Wunsch, 2005/05/23
- RE: [avr-gcc-list] AVR-GCC question, Trampas, 2005/05/23
- Re: [avr-gcc-list] AVR-GCC question, E. Weddington, 2005/05/23
- Re: [avr-gcc-list] AVR-GCC question, Matthew MacClary, 2005/05/23
- Re: [avr-gcc-list] AVR-GCC question, Joerg Wunsch, 2005/05/24
- Re: [avr-gcc-list] AVR-GCC question, Jeff Epler, 2005/05/23
- RE: [avr-gcc-list] AVR-GCC question, Trampas, 2005/05/23
- RE: [avr-gcc-list] AVR-GCC question, Dave Hansen, 2005/05/23