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