[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Question about char pointers & avr-gcc on ATmega128
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] Question about char pointers & avr-gcc on ATmega128 |
Date: |
Thu, 2 Jan 2003 14:21:54 +0100 (MET) |
address@hidden wrote:
> I've read a few postings in AVRFREAKS and seen some discussion here
> that leads me to believe that char pointers are handled by avr-gcc
> as 24 bits in order to accommodate the larger 128K memory size.
Nope, they are 16 bits still. When referring to code locations, they
are counted in 16-bit words, however, so with 64 KW of address space,
the entire flash ROM can be addressed. (All instructions end up on a
word boundary anyway.)
Only .progmem data pointers are restricted to the lower 64 KB of
flash.
--
J"org Wunsch Unix support engineer
address@hidden http://www.interface-systems.de/~j/
avr-gcc-list at http://avr1.org
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [avr-gcc-list] Question about char pointers & avr-gcc on ATmega128,
Joerg Wunsch <=