This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

table in arm asm

Hi,

I am currently using ARMv8 DS-5 for development and am unable to find how to define and initialize the variable in arm asm. Specifically, I want to define the following constant variable in asm file:

const  Word16 tbl[4][8] =

{

    {   0,   0,   0,  64,   0,   0,   0,   0},

    {  -1,   4, -10,  58,  17,  -5,   1,   0},

    {  -1,   4, -11,  40,  40, -11,   4,  -1},

    {   0,   1,  -5,  17,  58, -10,   4,  -1},

};

I am aware of defining it in gcc version of tools which is as follows:

   .global tbl

tbl:

    .HWORD  0,   0,   0,  64,   0,   0,   0,   0

    .HWORD -1,   4, -10,  58,  17,  -5,   1,   0

    .HWORD -1,   4, -11,  40,  40, -11,   4,  -1

    .HWORD  0,   1,  -5,  17,  58, -10,   4,  -1

But do not know how it I can convert it into arm asm. Thanks in advance for the help.

0