CODECOMPOSER: Windows/Linux CCS Output Differences

Part Number: CODECOMPOSER

Tool/software:

Hello,

I am using following version of CCS/Compiler:

Code Composer Studio Version: 12.3.0.00005

ARM C/C++ Compiler v20.2.7.LTS

This tool chain produces different output from Windows/Linux builds (the same sources). Part of relocable object files are the same, but there are object files where decisions taken by compiler during compilation are different. Thus generated object code is different from Windows/Linux builds.

Is it known issue?

Regards,

J. Woźny

  • Please pick one object file where you see a difference.  Exactly how do you see this difference?  What tools do you use?

    At the same time, for the source file that corresponds to this object file, please follow the directions in the article How to Submit a Compiler Test Case.

    Thanks and regards,

    -George

  • Windows: C:\ti\ccs1230\ccs\tools\compiler\ti-cgt-arm_20.2.7.LTS\bin\armcl -mv7R5 --code_state=32 --float_support=VFPv3D16 -me --include_path="C:\ti\ccs1230\ccs\tools\compiler\ti-cgt-arm_20.2.7.LTS\include" -g --c99 --abi=eabi a.c

    Linux: armcl -mv7R5 --code_state=32 --float_support=VFPv3D16 -me --include_path="/opt/ti/ccs1230/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/include" -g --c99 --abi=eabi a.c

    ObjDump: armobjdump.exe -h -D

    Differences are in text secitions.

    testData.zip

  • Thank you for reporting this problem, and supplying a test case.  I am able to reproduce the reported behavior.  I filed the issue EXT_EP-12850 to have this investigated.  You are welcome to follow it with that link.

    Please consider this workaround: Add the option --opt_level=2 to build with optimization level 2.  

    You use the TI Arm compiler.  Please consider using its replacement the TI Arm Clang compiler.  To understand why, please see the note near the end of the first page of the online manual.

    Thanks and regards,

    -George

  • Thank you for confirmation and raising issue. I tried in past build project also with 02 but I got differences in other files. I can confirm only that indeed overall count of files where I observed differences decreased with O2,

    Thank you for hint that we need consider using the TI Arm Clang compiler.

    Thanks and regards,

    -Jarek

  • Hello,

    Please note that due to the local holiday today responses will likely be delayed.

    Thanks

    ki