This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Question about using cmd or not using cmd file

Hello:

I built my project sum=a+b where a=3 and b=4. Then I printed sum out with print function.

 

I literally did not write any cmd file to allocate the memory.  But why the console could show the result "sum=7" as same as VS2010 C programming?

 

The C code at CCS is essentially runnning on my DSK.  Hence using the memory to store my three variables a b and sum should be required.  But why it worked without cmd file?  Did they even never used the memory or register of my DSK?

 

I cannot distinguish when should I write cmd file to allocate memory and when I do not write cmd file which is simliar to VS2010?

 

Thanks

  • I assume you are talking about a linker command script file. Last I checked, CCS will automatically use a linker command file in one of the install directories. You might be able to see a build message saying which one it is using. I think that the linker file chosen is a general purpose script that is suitable for the platform that you specified when creating the project. You would write your own if you wanted to adjust the memory allocation (eg. stack, heap, reserved memory, etc.). You likely would have to write your own cmd file if you have a custom board.

  • Hi,

    Norman was right.

    Please don't duplicate the posts.

    http://e2e.ti.com/support/dsp/tms320c6000_high_performance_dsps/f/115/t/385741.aspx

  • Judging from Yu Zhang's post history, he may not be a real person. All his posts are thread starters. No replies to answers.

  • Excuse me, I am literally the real person. My name is Yu Zhang and I am a student at Worcester Polytechnic Institute near Boston.  I am just a dsp novice so I posted many questions.

     

    Yu

  • Hi Yu Zhang,

    I knew that you are studying "Worcester Polytechnic Institute" by seeing your account details.

    As Norman replied, you have to reply back to the guys who trying to help you out from the problem.

    Please don't think that we close the problem only if you opened the multiple threads for the same problem.

    Our intention is to close each & every posts in the TI E2E forums irrespective of student or company employee's post.

    Thanks for your understanding.