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 option different in project

Hi everybody,

I am working on a C55x project, in CCS4. I am using --pm option (-program_level_option) globally, but on some of my source files it is not active (if I look into their specific option for build). They are also marked with that "^" symbol, which I have learned is to show that these files have different compile options. I can not set the --pm option on that specific files manually as it is only available in the global project compile options. So my question is how can I change that? What am I doing wrong that these files get other compile option(s)? Is there a way to reset the compile options of all files globally?

Best regards,

Max

  • Max Forster said:
    I am using --pm option (-program_level_option) globally, but on some of my source files it is not active (if I look into their specific option for build).

    The -pm is a project level option and not one that can be set at a file specific level. This is because the option performs optimization at the whole program level where it needs to have visibility into all source files, rather than at a file specific level.

    Max Forster said:
    Is there a way to reset the compile options of all files globally?

    If you have files with file specific options (as shown with the "^" symbol), you can restore them to their default values, by right-clicking on each of those source files, going to Properties and clicking on "Restore Defaults".

  • Hi AartiG,

    thanks for your reply.

    Ok, I understand that it is a global setting and therefore it can only changed project wide. But I do not understand why I have some of my files (marked with "^") which show that setting not in their compile options (if I go properties>All Options).

    Here are the Options from a file with "^":

    -v5515 -g -O3 --include_path="C:/ti/CCSV4/ccsv4/tools/compiler/C5500 Code Generation Tools 4.3.9/include" --include_path="C:/Works_SYNO/SYNODSP/Includes" --include_path="C:/Works_SYNO/SYNODSP/Includes/sources" --include_path="C:/Works_SYNO/SYNODSP/Includes/header" --diag_warning=225 --optimize_with_debug --ptrdiff_size=16 --memory_model=large --assume_bss_onchip --opt_for_speed=5 --call_assumptions=0

    and that are the options for all other files:

    -v5515 -g -O3 --program_level_compile --include_path="C:/ti/CCSV4/ccsv4/tools/compiler/C5500 Code Generation Tools 4.3.9/include" --include_path="C:/Works_SYNO/SYNODSP/Includes" --include_path="C:/Works_SYNO/SYNODSP/Includes/sources" --include_path="C:/Works_SYNO/SYNODSP/Includes/header" --diag_warning=225 --optimize_with_debug --ptrdiff_size=16 --memory_model=large --assume_bss_onchip --opt_for_speed=5 --call_assumptions=0

    Even after restore settings the files, as you mentioned, they stay marked with "^" and didn't take the --program_level_compile. Can it be something in my c code which let the compiler automatically remove these files from --program_level_compile? After setting restore should the "^" disappear instantly or after re-compile?

    Best regards,

    Max

  • What is the exact version of CCSv4 you are using? It is possible that there was a bug in that version causing these issues. I would recommend trying out the latest version of CCSv5, v5.4, if possible. There have been many changes/improvements in CCSv5 and this could be a non-issue. CCSv5 can be download and installed from http://processors.wiki.ti.com/index.php/Download_CCS

    If you still notice similar issues with CCSv5 please send us a project that demonstrates the issue.

  • Hi AartiG,

    I am using CCS4 with version 4.2.4.00033 and code generation tool 4.3.9. Right now I am in a running project so that I do not want to change the version of my development tool right now, but thanks for the hint that this could be a bug of CCS4. I will test that as soon as the project is in end state or maybe I can test it on a parallel machine or something like that.

    Best regards,

    Max

  • Max Forster said:
    I will test that as soon as the project is in end state or maybe I can test it on a parallel machine or something like that.

    Yes, you can test on a different machine or even install CCS 5.4 on the same machine. As long as they are installed in different folders, you can keep multiple installations of CCS on the same machine. That way you can continue development with your current version but use CCS 5.4 for testing and evaluation.

  • Hi AartiG,

    I tried your solution with CCS V5.4 and the problem disappears (no more mark on several files, all have now the -pm option active). However, as this maked my project incompatible to CCS V4, I played a little bit around with your first solution of reseting the file options. Now I did it globally in CCSV4 and all marks disappeared too. After setting my old compile options again (and re-compile my project) they are still not marked as different! So I guess whatever was the cause of these different option on my files after resetting globally the compile options, they are gone.

    Best regards,

    Max