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,
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.
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.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.