Sign in

username:

password:



Not a member?

Search adsp



Search tips

Subscribe to adsp



adsp by Keywords

AD1819 | AD7332 | ADSP-2106 | ADSP-21060 | ADSP-21065L | ADSP-2116 | ADSP-21160M | ADSP-2181 | ADSP-218x | ADSP-219 | ADSP-2199 | ADSP219 | BF531 | BF532 | BF533 | BF535 | Blackfin | FFT | JTAG | LDF | SDRAM | SHARC | SPORT | UART | VDSP++ | VisualDSP

Discussion Groups

Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).

  

Post a new Thread

static variable - hemant ramdasi - Aug 5 17:02:00 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
__________________________________





(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: static variable - Kenneth Porter - Aug 5 17:43:00 2003

--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.





(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )