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.
Hello,
I was trying to build rts6740_elf_eh.lib or rts6740_elf.lib using instructions from section 8.5.2 of TMS320C6000 Optimizing Compiler v 7.3 User's Guide (SPRU187T.pdf) but it doesn't compile. I tried extracting rtssrc.zip in an empty folder and run the following command:
E:\Tests\Rts>e:\ti\ccsv5\utils\bin\gmake.exe library LIB=rts6740_elf_eh.lib C6XA
BI=1 EABI_TDEH=1 EXCEPTIONS=1 NOT_VENC_ASM=1 C6000=1 EABI=1 C6740=1
It reports:
cl6x decode.c -o -oe -k -ps -pdsw225 -q -mo --mem_model:data=far --no_visible_e
nums -c --ti_lib --building_runtime -D_BOOL --abi=eabi -D__TI_TABLE_DRIVEN_EXCEP
TIONS -mv6740 -fg --rtti --exceptions --extern_c_can_throw -I -fr OBJ -fs OBJ -f
t OBJ
process_begin: CreateProcess(NULL, cl6x decode.c -o -oe -k -ps -pdsw225 -q -mo -
-mem_model:data=far --no_visible_enums -c --ti_lib --building_runtime -D_BOOL --
abi=eabi -D__TI_TABLE_DRIVEN_EXCEPTIONS -mv6740 -fg --rtti --exceptions --extern
_c_can_throw -I -fr OBJ -fs OBJ -ft OBJ, ...) failed.
make (e=2): The system cannot find the file specified.
gmake: *** [OBJ/decode.obj] Error 2
If I run gmake gmake rts6740_elf.lib in the source folder it says "gmake: *** No rule to make target `rts6740_elf.lib'. Stop".
Also tried according to http://processors.wiki.ti.com/index.php/How_to_rebuild_the_C6000_RTS but there is no \lib\rtssrc\SHARED\mksrc.pl or even the folder.
What is the correct working way of building RTS using CCS v.5.3 and compiler 7.3.9? We are trying to enable --gen_func_subsections so that only used functions are linked into the executable.
Thank you in advance,
David.
Please see this wiki article on mklib. Pay particular attention this section on building custom libraries. The latest revision of the C6000 compiler book has been updated with this information.
Thanks and regards,
-George
David Luca said:What is the correct working way of building RTS using CCS v.5.3 and compiler 7.3.9? We are trying to enable --gen_func_subsections so that only used functions are linked into the executable.
The C6000 libraries are already built with --gen_func_subsections (-mo), and rts6740_elf.lib is shipped with the compiler, so there should be no need to rebuild for that purpose.
Thank you both very much for your help, this answers my questions and also cancels the need to rebuild the library.
Best regards,
David.