Sign in

username:

password:



Not a member?

Search code-comp



Search tips

Subscribe to code-comp



code-comp by Keywords

ARM7 | BIOS | Bug | EVM | JTAG | Linker | LOG_printf | McBSP | Profiling | Relocation | RTDX | Simulator | Target | Watch

Discussion Groups

Discussion Groups | Code-Composer | passing variables in functions

Technical discussions about Code Composer Studio.

  

Post a new Thread

passing variables in functions - tArAng - Apr 16 20:47:00 2004



Hi all,

I am having this problem with memory allocation and am struggling to find out how CCS allocates memory to different variables. The thing is whenever I am calling a function and passing some variables to it, CCS initializes them (passed variables) in CPU registers. ( how do i know this... I watched them in watch window and tried to see the address of that variable.. that gave me "cannot make a pointer to a register" .. ) and as I continued to single step through the code, those variables they kept on changing even if they were not used in that part of code.
I am not using any kind of optimization.

Is there anything wrong in my approach, or isthere anything I am missing on, really basic or something. I made a workaround for a particular variable but then it would affect my other variables in the same way. Any input in this direction is most welcome.

Oops i missed on this.. I am using c6711 DSK with CCS version 2.1

Thank You,

Tarang Dadia
Graduate Student
Wireless Networking Lab
University of Texas at Arlington.


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