I am using board TMDXEVM6678LE to learn DSP. Now I am confused with how to define and use a vary large array. This array's size may be large as 10,000 or 100,000.
I'm sorry, but this question is too vague. Please describe how you tried to do one particular thing (not everything!), and what happened when you did it. In the meantime, this FAQ list may be useful http://c-faq.com/aryptr/index.html .
Thanks and regards,
-George
TI C/C++ Compiler Forum ModeratorPlease click Verify Answer on the best reply to your question.The Compiler Wiki answers most common questions.Track an issue with SDOWP. Enter your bug id in the "Find Record ID" box.
Hi George,
I want to use a very large array whose size is not known on TMDXEVM6678LE and in CCS5.0.3. This program is running on core0. In the source file, I defined a pointer and use the " malloc " to allocate a memory block for pointer like " pAmpltdKnown = (float *) malloc(arraySize * sizeof(float)); ". If I change the arraySize to 1000, system can successfully allocate, but if the arraySize is 10,000, system failed it. Can you tell me how to solve this problem?
You need to make the heap bigger. Use the --heap linker option. It is described in the C6000 Assembly Language Tools book.