We transfer an application from Ubuntu on a PC to EVM6472 in BIOS.
The build time is very long. We use thesoftware tools version 7.31.How to reduce the build time? The same application is built very fast on other platforms.
Best regards,
Yehuda
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.
We transfer an application from Ubuntu on a PC to EVM6472 in BIOS.
The build time is very long. We use thesoftware tools version 7.31.How to reduce the build time? The same application is built very fast on other platforms.
Best regards,
Yehuda
Your description of the problem doesn't have much detail. It is hard to know what to recommend. You may have this linker problem. Make sure you are not doing too much inlining. That can create very large functions which can take a long time to compile.
Thanks and regards,
-George
Dear George,
Thank you for your answer. Yes, the code includes many inlining code. But the same code compiles very fast by a factor of 8 by similliar development systems.
The code is confiodential but we have an NDA with TI.
DO you want to take a look at it?
Best regards,
Yehuda
Dr. Yehuda Singer said:DO you want to take a look at it?
The problem is probably in how you build the code, and not the code itself. Thus, looking at the code is unlikely to be helpful.
Please disable all optimization and build again. Does that improve build time? If so, by how much?
Thanks and regards,
-George
Dear George
I do not set any optimization. The size of the executable including debugging information is around 40MB.
If the softwaretools are based on GNU, why other GNU tools are much faster?
Best regards,
Yehuda
Are you using the TI compiler for C6000? If so, that compiler is not based on GNU.
Thanks and regards,
-George
Dear George,
I am using the software tools 7.31.
I use:
1. The basic options: 64+ --abi=eabi.
2. C++.
3. C files are considered as C++.
Best ergards,
Yehuda
For one source file, please show me exactly how the compiler is invoked.
Thanks and regards,
-George
'Building file: ../SOURCE_FILES/RISC_CPU_FILES/pic.cpp'
'Invoking: C6000 Compiler'
"C:/Program Files/Code Composer Studio/ccsv5/tools/compiler/c6000/bin/cl6x" -mv64+ --abi=eabi -g -O0 --extern_c_can_throw --exceptions
--rtti --cpp_default --gcc --define=SC_LITTLE_ENDIAN --define=SC_INCLUDE_FX --undefine=SC_MAX_NBITS --undefine=SC_FX_EXCLUDE_OTHER
--undefine=SC_LONG_64 --undefine=SC_ENABLE_OBSERVERS --undefine=WIN32 --undefine=SC_ENABLE_OBSERVERS --undefine=SC_BIG_ENDIAN
--undefine=PURIFY --include_path="C:/Program Files/Code Composer Studio/ccsv5/tools/compiler/c6000/include"
--include_path="C:/Program Files/Code Composer Studio/bios_6_32_05_54/packages"
--include_path="F:/TI demo Version 0.6/RISC_Demo_EVM6472_Version_0.65/SOURCE_FILES/systemc_2.2.1/src"
--include_path="F:/TI demo Version 0.6/RISC_Demo_EVM6472_Version_0.65/SOURCE_FILES/systemc_2.2.1" --display_error_number --diag_warning=225
--abi=eabi --preproc_with_compile --preproc_dependency="SOURCE_FILES/RISC_CPU_FILES/pic.pp" --obj_directory="SOURCE_FILES/RISC_CPU_FILES"
--cmd_file="./configPkg/compiler.opt" "../SOURCE_FILES/RISC_CPU_FILES/pic.cpp"
Thanks and best regards,
Yehuda
Please show the the contents of the file ./configPkg/compiler.opt. That file contains additional compiler options. I'm not sure what will be in it, but I doubt it will contain any clues as to why the build takes so long.
So, please supply one of your source files, preprocessed as described here. I'll try compiling it with a few compilers I have on hand. Presuming I also see a compile time difference, I'll file an issue in the SDOWP system.
Thanks and regards,
-George
1. Long build time.
2. LOng load time to EVM6472.
3. The entry "main" is not identified.
Best regards,
Yehuda
I don't know what is in that .zip file. CCSv5.1 and CCSv4 did not load any project from it. But this doesn't matter that much.
Because I don't want an entire project. Please send just one source file, preprocessed like this. That's all I need.
Thanks and regards,
-George
I don't know what went wrong, or how. But the last post is blank. I'm still waiting for a preprocessed source file to work with.
Thanks and regards,
-George