[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Syntax: Function pointer hell... newbee lost ! ;-)
From: |
Vincent Trouilliez |
Subject: |
Re: [avr-gcc-list] Syntax: Function pointer hell... newbee lost ! ;-) |
Date: |
Tue, 20 Jan 2009 13:53:50 +0100 |
"Dave Hylands" <address@hidden> wrote:
> Because all of the tools expect to work in bytes, but internally, the
> AVR actually works in words which are 16-bits wide (we're talking
> about code addresses here).
>
> This means that tools like objdump and objcopy and the linker all
> continue to use byte addresses, but the actual code uses word
> addresses.
> "Dave N6NZ" wrote:
> The not-very-technical answer:
> Well, avr-gcc thinks the whole world is byte addressable. But AVR flash
> is (16 bit) word addressable only. So the avr-gcc tool chain works in
> byte addresses until the very last stages of prepping a binary, where
> flash addresses all get shifted right by one bit.
Thanks Dave and Dave ! ;-)
--
Vince