Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

Forum Post: Interfacing c and asm global variables

$
0
0

Hi,

I’m using code composer studio 5.4 for DSP C54x.

I want to interface a C code with an asm routines (algebric), as follows my problem:

I have a defined variable in my file my_asm.asm like that:

My_var1             .set        0

My_var2             .set        1

…etc

So want to transfer these variables to my c file main.c :

#define My_var1            0

#define My_var2            1

Or like that:

Extern unsigned int My_var1;

My_var1=0;

…etc

Actually when I added:

  .global   My_var1  in asm file and

Extern unsigned int My_var1; in c file

ð  I have this error [E0000] parse error

There other ways?


Viewing all articles
Browse latest Browse all 91752

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>