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

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

Re: [avr-gcc-list] Is some special attribute or qualifier required to ma


From: David Fernandez
Subject: Re: [avr-gcc-list] Is some special attribute or qualifier required to make C function tables to use the right linker stubs?
Date: Wed, 30 Apr 2014 18:48:44 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0


On 30/04/14 18:03, Dave Hylands wrote:
The assembler uses word addresses, so a 16-bit entry can refer to 128K
Hi Dave,
thanks for replying.

AFAIK, in assembler, as it refers to addresses in bytes, but the avr
hardware uses word addresses, there is the pm() and pm_xxx macros that
do the /2 for you when loading a register with relocatable addresses, so
that the relocations still work.

Yes, for a 128 part it will be ok, but I need to be sure it will just
work for a 256 part, and if I need to do magic now, rather than later,
or there is a proper way of dealing with this.

Cheers
David
The information contained in this message is confidential and is intended for 
the addressee(s) only. If you have received this message in error, please 
notify the sender immediately and delete the message. Unless you are an 
addressee (or authorized to receive for an addressee), you may not use, copy or 
disclose to anyone this message or any information contained in this message. 
The unauthorized use, disclosure, copying or alteration of this message is 
strictly prohibited.



reply via email to

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