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

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

Re: [avr-gcc-list] [avr-as]: How to assembler a 24-bit integer?


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] [avr-as]: How to assembler a 24-bit integer?
Date: Tue, 1 Nov 2011 11:33:56 +0100 (MET)

In article <address@hidden> you write:

>For now, the reccommendation, I could give you is, to try to place all 
>of your "data type" constant tables in the first 64k of memory by use of 
>an appropriate linker script. As long as they reside within the first 
>64k, a 16 bit pointer will do.

As Johann works on the named address space implementation in GCC, I
think he really wants a true 24-bit data type.  The overall goal is to
be able to eventually replace all those workarounds ("use only the first
64 KiB", "use a 32-bit number instead") by a genuine 24-bit addressing,
so you can write something like:

__farflash const char *stringtable[] = { ... };

and have the compiler insert the correct (ELPM) instruction to access
them when referencing "stringtable" data.
-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



reply via email to

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