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.

Generating Analysis Infos with CCS 6.0 doesn't work



Hello,

I want optimize an algorithm with the Cache Layout Tool direkt in CCS 6.0.

- Code generation tools: 7.4.8
- Target: C64x+

The first phase of generating profile feedback data is done. I get the file "pprofout.pdat". Then I generate the PRF file with the tool "Profile Data Decoder" (pdd6x) manually in the command line.

Is there an option to do it automatically from the CCS? I think a post-build command could be the solution?

But the main problem ist the generation of the  CSV-Files with --gen_profile_info to get callgraph informations. It is not working with CCS. The same build options from CCS putting in the command line generates the expected CSV file.

Do I miss something or am I doing something wrong?

Is there an option to do both phases --gen_profile_info and --use_profile_info with CCS automatically?

Thanks,

Milan

  • Hi Milan,

    Milan said:
    Is there an option to do it automatically from the CCS?

    yes there is. Instead of manually calling ppd6x yoruself, you can have CCS automatically do it. See the below training module:

    http://processors.wiki.ti.com/index.php/CCS_Modules_Library#Code_Coverage

    Thanks

    ki

  • Hello Ki,

    thanks for your answer.

    With the Lab the generation of Code Coverage infos is working.
    If I do the same with my project, it's not working. The PDAT-File was generated, but if I  click on "Process CodeGen Code Coverage", then there is a window with "Configure and run project to generate default raw data file or browse to select a raw data file". What is the raw data file? I have selected the PDAT-File, but nothing happend in CCS. There is no PRF-File in the target folder and no CSV-Files in the source folder.

    My CCS project is a Multi-Project, imported from CCS3.3. One executable project and some lib-projects. One of the lib-project ist the algorithm, which I want to analyze and optimize with the Cache Layout Tool. Only the algorithm project I have activated in the build options to generate feedback data.

    How can I solve this problem?

    But also if I manually recompile the Lib or a single file with the options --use_profile_info and --analyze callgraph, I expecting generation of CSV-Files. This is my main goal, but it doesn't work. The same compiler command for one or more source files in the DOS window is working.

    Thanks,

    Milan

  • Hello,

    I have tried to generate a CSV file (callgraph informations) with a small new CCS project.

    The generation works during build process, if the C-File is placed in the project folder. If the C-File is placed outside the project folder and is inserted as a link, then it doesn't work.

    What is the reason of this behavior. Or is it an error of the comiler or the CCS?

    Thanks,

    Milan

  • I think I recall running into that issue before. It is probably an issue with CCS not providing the proper paths for linked files to the utility. I'll forward this issue to the engineers for analysis.

    Thanks

    ki

  • Thanks Ki,

    today I have make some further tests with the windows DOS command line.

    I have following folder structur with C++ files:

    Folder_A
    --> Folder_B
          --> Folder_C

    The most of C++ files are placed in Folder_B, so the work directory in DOS is Folder_B. If I compile all C++ files in the three folders, only C++ files from Folder_B has a corresponding CSV-File.

    I think the problem are the object files placed all in the work directory, only. Perhaps the function --use_profile_info needs the source and the object file in the same folder to generate the CSV-Files?

    Thanks,

    Milan

  • Milan,

    if you run everything from the command-line (no CCS involved), does it all work correctly?

  • Ki,

    my test from last message was completely from command-line. But it works only in the work directory, like in the project path with CCS.

    Now I wrote a batch file with compiler command for each source directory. The work directory for the compiler I change with "pushd" to the corresponding source directory. With this workaround it's working.

    It seems to be an error of the compiler. The goal is to do it with the CCS.

    Thanks,
    Milan

  • Hi Ki,

    I also have the same issue where generation of CSV files are not working with CCS after using --use_profile_info  and --analyze=callgraph options.

    CCS version: 5.5.0.00077

    C6678 platform

    Compiler - 7.4.6

    Is this a known bug or any workaround possible?

    Thanks and regards

    Sudheesh