Why you want to build up such lookup table in assembler?
Sten
vineet jain wrote: > Hello ppl,
> I am using the GNU tool under the Keil environment. I wanted to know if
there is anyway I could make a lookup table(in code memory, flash) from a
particular location.
>
> for eg..some assemblers support the following:
>
> org 1000h
> db 25h,34h,45h
>
> so the data is stored from 1000h onwards. Is there any equivalent facility
in GAS(GNU assembler).
>
> Also is there any place where I could find gcc documents specfic to ARM
other than the hitex book. It would be really helpful.!!!!
>
> Thanks in advance.
>
> Vineet.
>
--
/************************************************
Do you need a tiny and efficient real time
operating system (RTOS) with a preemtive
multitasking for LPC2000 or AT91SAM7?
You can use an __attribute__((section(".lookup_table"))) and
create a
section in your linker script. I used the following linker script for
some calibration data in a LPC2292:
> Hello ppl,
> I am using the GNU tool under the Keil environment. I wanted to know
> if there is anyway I could make a lookup table(in code memory, flash)
> from a particular location.
>
> for eg..some assemblers support the following:
>
> org 1000h
> db 25h,34h,45h
>
> so the data is stored from 1000h onwards. Is there any equivalent
> facility in GAS(GNU assembler).
>
> Also is there any place where I could find gcc documents specfic to
> ARM other than the hitex book. It would be really helpful.!!!!
>
> Thanks in advance.
>
> Vineet.
>
> ---------------------------------
> Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
> >.
>
>
Reply by Michael Anburaj●October 17, 20052005-10-17
use .word
like this,
.word 0x123456678
Cheers,
-Mike.
--- vineet jain <vineetrvce@vine...> wrote:
> Hello ppl,
> I am using the GNU tool under the Keil
> environment. I wanted to know if there is anyway I
> could make a lookup table(in code memory, flash)
> from a particular location.
>
> for eg..some assemblers support the following:
>
> org 1000h
> db 25h,34h,45h
>
> so the data is stored from 1000h onwards. Is there
> any equivalent facility in GAS(GNU assembler).
>
> Also is there any place where I could find gcc
> documents specfic to ARM other than the hitex book.
> It would be really helpful.!!!!
>
> Thanks in advance.
>
> Vineet.
>
> ---------------------------------
> Yahoo! Music Unlimited - Access over 1 million
> songs. Try it free.
>
> [Non-text portions of this message have been
> removed]
__________________________________
Reply by vineet jain●October 17, 20052005-10-17
Hello ppl,
I am using the GNU tool under the Keil environment. I wanted to know if there is
anyway I could make a lookup table(in code memory, flash) from a particular
location.
for eg..some assemblers support the following:
org 1000h
db 25h,34h,45h
so the data is stored from 1000h onwards. Is there any equivalent facility in
GAS(GNU assembler).
Also is there any place where I could find gcc documents specfic to ARM other
than the hitex book. It would be really helpful.!!!!
Thanks in advance.
Vineet.
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.