hi, I am using VisualDSP++ and I want to have a Global variable in my C code which is in the Program Memory.(allocated appropriately in the LDF)Can someone tell me the syntax by which i can refer this variable in my assembly code.(for a global variable which was in the DM it was simple ,i just had to say .extern _a (if a is the Global variable) in the assembly code but when i use the same thing for the variable in the PM I am not able to compile successfully. It would be great if osme one can help me on this. thanks chitra |
|
Question abt variable in PM for ADSP 21160
Started by ●March 17, 2002
Reply by ●March 18, 20022002-03-18
Hi, In the assembly file declare the variable as .segment/pm seg_pmco; .var _asm_variable; .global _asm_variable; In the C file write extern float asm_variable; You can access the variable in your C code as asm_variable and as _asm_variable in the assembly code. Hope this helps, Alok Modak Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from http://www.planetm.co.in |