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

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

Re: [avr-gcc-list] Syntax: Function pointer hell... newbee lost ! ;-)


From: Dave N6NZ
Subject: Re: [avr-gcc-list] Syntax: Function pointer hell... newbee lost ! ;-)
Date: Mon, 19 Jan 2009 17:07:05 -0800
User-agent: Thunderbird 1.5 (X11/20051201)

Vincent Trouilliez wrote:
I am still not quite clear why the map file reports Flash adresses
twice that of what the memory pointer of the AVR chip actually holds
physically ?

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.

-dave



--
Vince


_______________________________________________
AVR-GCC-list mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list






reply via email to

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