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.

lnk6x.exe failed to allocate memory

Hi,

I am using the following setup:

- DM6437 DSP

- DSP/BIOS 5.31.07

- CGTools 6.1.23

We have started getting this error message intermittently:

lnk6x.exe failed to allocate memory

This is a serious problem.  Please contact Customer
Support with this message and a copy of the input file
and help us to continue to make the tools more robust.

 I have tried to -b,but i failedThe same result comes up. And --symdebug:none doesn't work. Please help me . Thank you.

  • The linker message "failed to allocate memory", means the linker itself ran out of memory on the host.  This may be because the program is too big for the linker to handle, or due to a bug where the linker consumes too much memory. 

    There are newer versions of the C6000 CGtools available which I would recommend trying first to see if it resolves the error. Please see this wiki on how to download and install compiler releases: http://processors.wiki.ti.com/index.php/Compiler_Releases. I would suggest trying out the latest version in the 7.3.x or 7.4.x streams. If the problem still exists in the newer versions we would need a test case to reproduce the problem before we can proceed further.

     

  • Thanks,AartiG.

                 I have found that it is because the program is big for the linker to handle. By reducing its size, it works. I have a question about the compiler. I have run a program consuming 0.2s in PC. which contains CPU 3.25Ghz, dual-core processor, IDE:VS2010. Meanwhile, I run this program in TMSDM6437,CPU594MHZ. However, it run 180s. I want to know why? Thanks.    

  • Rock Lee1 said:
    I have run a program consuming 0.2s in PC. which contains CPU 3.25Ghz, dual-core processor, IDE:VS2010. Meanwhile, I run this program in TMSDM6437,CPU594MHZ. However, it run 180s. I want to know why?

    So, you are saying you run the same program on your Windows (or Linux) PC and on a C6000 system, and the C6000 is 9000 times slower.  Is that right?  There is not much to go on there.  Are you sure the C6000 compiler applies the software pipeline optimization to all the loops?  You have to build with --opt_level=2 or higher to get software pipelining.

    Thanks and regards,

    -George