named address spaces: addr_space_convert never called

2010-11-08 Thread Georg Lay
Hi, I just started playing around with named address spaces for avr. Besides general space (ram), I introduced a second one, __pgm, which shall address program memory where also constants may live. avr is havard architecture, and both program memory and ram start at address 0. >From this and the i

Re: named address spaces: addr_space_convert never called

2010-11-08 Thread Georg Lay
Georg Lay schrieb: FYI, the code is as expected when I define the addrspaces to be subsets of each other. Georg

Re: named address spaces: addr_space_convert never called

2010-11-08 Thread Richard Guenther
On Mon, Nov 8, 2010 at 3:39 PM, Georg Lay wrote: > Hi, I just started playing around with named address spaces for avr. > Besides general space (ram), I introduced a second one, __pgm, which > shall address program memory where also constants may live. avr is > havard architecture, and both progra

Re: named address spaces: addr_space_convert never called

2010-11-08 Thread Georg Lay
Richard Guenther schrieb: > On Mon, Nov 8, 2010 at 3:39 PM, Georg Lay wrote: >> Hi, I just started playing around with named address spaces for avr. >> Besides general space (ram), I introduced a second one, __pgm, which >> shall address program memory where also constants may live. avr is >> hava

Re: named address spaces: addr_space_convert never called

2010-11-08 Thread David Brown
On 08/11/10 16:59, Georg Lay wrote: Richard Guenther schrieb: On Mon, Nov 8, 2010 at 3:39 PM, Georg Lay wrote: Hi, I just started playing around with named address spaces for avr. Besides general space (ram), I introduced a second one, __pgm, which shall address program memory where also const

Re: named address spaces: addr_space_convert never called

2010-11-09 Thread Georg Lay
David Brown schrieb: > On 08/11/10 16:59, Georg Lay wrote: >> Richard Guenther schrieb: >>> On Mon, Nov 8, 2010 at 3:39 PM, Georg Lay wrote: Hi, I just started playing around with named address spaces for avr. Besides general space (ram), I introduced a second one, __pgm, which shal

Re: named address spaces: addr_space_convert never called

2010-11-09 Thread Georg Lay
> int __far __atomic x; int volatile __far __atomic x; makes more sense :-)

Re: named address spaces: addr_space_convert never called

2010-11-09 Thread David Brown
On 09/11/10 18:45, Georg Lay wrote: David Brown schrieb: On 08/11/10 16:59, Georg Lay wrote: Richard Guenther schrieb: On Mon, Nov 8, 2010 at 3:39 PM, Georg Lay wrote: Hi, I just started playing around with named address spaces for avr. Besides general space (ram), I introduced a second one

Re: named address spaces: addr_space_convert never called

2010-11-11 Thread Georg Johann Lay
David Brown schrieb: > On 09/11/10 18:45, Georg Lay wrote: >> David Brown schrieb: ... >>> May I say I think it's great that you are looking into this? Program >>> space access on the AVR was the first thing I thought of when I heard of >>> the concept of named address spaces in C. >> >> It's grea

Re: named address spaces: addr_space_convert never called

2010-11-11 Thread David Brown
On 11/11/2010 10:26, Georg Johann Lay wrote: David Brown schrieb: On 09/11/10 18:45, Georg Lay wrote: David Brown schrieb: ... May I say I think it's great that you are looking into this? Program space access on the AVR was the first thing I thought of when I heard of the concept of named ad