DSPRelated.com
Forums

static variable

Started by hemant ramdasi August 5, 2003
Hi all,

I am using vdsp 2.0 and SHARC 21060.

I have one function written in c, which has two arrays
declared as static.
Now I want to write code for this function in
assembly.

But I do not understand how to access the static array
in assembly?

Can anyone help me in this regard? Thanks and regards
Hemant Ramdasi
__________________________________



--On Tuesday, August 05, 2003 10:02 AM -0700 hemant ramdasi
<> wrote:

> I have one function written in c, which has two arrays
> declared as static.
> Now I want to write code for this function in
> assembly.
>
> But I do not understand how to access the static array
> in assembly?

As a rule arrays are operated on with DAG's, so use the inline asm directives
with register codes for the appropriate kind of DAG. See the compiler manual
for the available codes to substitute in your assembly code for different
kinds of registers.