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.
Tool/software: TI C/C++ Compiler
We are thinking about switching from CCS5 to CCS7, but the current linker takes more than 40 minutes on linking a project that takes 2 minutes to link on CCS5.
My compile target is the TMS320C28346.
TMS320C2000 Linker v6.1.0: ~135s
TMS320C2000 Linker v16.9.4.LTS: ~ 2700s
TMS320C2000 Linker v16.9.5.LTS: ~ 2700s
I tried to fiddle with some linker options like --reread_libs, but nothing seems to have an impact on the link time.
I'm not aware of any such problem in the 16.9.4.LTS version of the C2000 linker. I think this is something we have not seen before. I'd appreciate if you would send us a test case, so we can investigate. In this case, we need the full CCS project. I'd appreciate if you would package it up as described in the article Project Sharing, then attach it to your next post.
Thanks and regards,
-George
Are you using any of the following options?
-O4
Does not work for us, the linker thinks an overload is an incompatible redefinition.
--no_sym_merge / -b
No.
I just turned it on and it reduced the build time on CCS5 to ~3s and ~10s on CCS7. This is perfectly acceptable. Are there any disadvantages to this (I assume the main side effect is that the debugging info takes more disk space).
BTW, we have lots of leaky abstractions (most headers include a dozen other headers etc.) and all legacy code (which is the majority) is in the global namespace.
No, they aren't `extern "C"`. But I'll report that problem when I get around to making a reproducible test case.
Dominic Fandrey said:Sorry, I don't have permission to send you the project and I certainly won't get it.
I understand. Perhaps it would help if you knew you can send it directly to me. Hover your mouse over my screen name or avatar. A box will pop up. Click on Send a private message. In the message compose interface which comes up, use the paper clip icon to attach the zip file.
Thanks and regards,
-George