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.

program_level_compile

I am trying to enable program level compile on my test project but it get an error:

C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake -k all
'Building target: Test.out'
'Invoking: Linker'
"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv67p --symdebug:none -O3 --program_level_compile --diag_warning=225 --debug_software_pipeline --gen_opt_info=2 -k --src_interlist -z -m"TestBrms.map" --stack_size=0x2000 --heap_size=0x16000 --warn_sections -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/lib" -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --reread_libs --rom_model -o "Test.out"  -l"libc.a"
<Linking>
warning: cannot resolve archive C:/Program Files/Texas
   Instruments/ccsv4/tools/compiler/c6000/lib/libc.a to a compatible library,
   as no input files have been encountered
fatal error: no input files

Is there a way to exclude the library from the program level compile?

Thanks!

  • I think the more important issue is that there are no input files.  In the cl6x command, I see no source files at all.

    What --program_level_compile does is take all the source files specified in the command and effectively combine them into a single unit for optimisation and code generation.

  • Thanks for the response.  It is strange that with this option enabled no source files are seen by the compiler.  Without this option the compile proceeds with all source files included.  I wonder if the problem is that the source files have been LINKED to the project, instead of ADDED to the project.

    I ran a test with files added to the project and the compiled completed as expected with --program_level_compile.

    I would like to keep the source files linked, instead of adding them to the project.  Is this possible when using --program_level_compile?

    Thanks!

  • That's a Code Composer question rather than a compiler question, and outside my area of expertise.  If a CCS expert doesn't wander by to answer it, we can see about moving the thread to that forum.

  • I forgot to save my source file with ".c" at the end.   Once I added this it compiled perfectly.