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:
MEMORY
{
CONF (r) : ORIGIN = 0x00038000, LENGTH = 0x00006000
}
SECTIONS
{
.calibration :
{
*(.calibration1)
*(.calibration2)
*(.calibration3)
*(.calibration4)
*(.calibration5)
*(.calibration6)
*(.calibration7)
*(.calibration8)
} >CONF
}
Richard Duits.
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.
>
>
>
> ---------------------------------
> Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
>
> [Non-text portions of this message have been removed]
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
> * Visit your group "lpc2000
> <http://groups.yahoo.com/group/lpc2000>" on the web.
>
> * To unsubscribe from this group, send an email to:
> lpc2000-unsubscribe@yahoogroups.com
> <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>Message
Re: [lpc2000] Lookup table in GAS!!!!
2005-10-17 by Richard Duits
Attachments
- No local attachments were found for this message.