View previous topic :: View next topic |
Author |
Message |
jychua
Joined: 27 Jul 2021 Posts: 14
|
Building with Same Compiler Different IDE Version |
Posted: Tue Aug 10, 2021 10:03 am |
|
|
Hello,
I noticed that for the same source files, building it with the same compiler version but different IDE version (I tried CCS C Compiler IDE 5.095 vs 5.105) generates slightly different hex files. Upon further investigation it would seem that the differences have record types of 00 (data).
Is this expected? How does the IDE affect the hex file generation?
Thank you for your help!
Best,
jychua |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
Re: Building with Same Compiler Different IDE Version |
Posted: Tue Aug 10, 2021 5:24 pm |
|
|
jychua wrote: |
I noticed that for the same source files, building it with the same
compiler version but different IDE version (I tried CCS C Compiler IDE
5.095 vs 5.105) generates slightly different hex files.
|
These different IDE versions are also different compiler versions.
Yes, different CCS compiler versions will often produce different ASM
code and different Hex files.
CCS makes improvements, bug fixes, or tweaks in each version and
this will produce different output. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19590
|
|
Posted: Wed Aug 11, 2021 12:07 am |
|
|
I think he is talking about using the 'previous compiler version' option
in the IDE?.
So building with 5.105, with 5.095 selected to compile. Then comparing this
with using IDE 5.095, with 5.095 selected.
There are still possible changes that this will cause.
Options, Project, Include files.
You need to ensure that this is set the same for the 5.105 build as for
the 5.095 build. So you need to set the include file search order to
look in the 5.095 drivers, devices, and examples locations.
Otherwise if any changes have been made to any of these files, though
you are compiling with '5.095', you are loading definitions that have been
updated for 5.105. Result, changes to the code..... |
|
|
jychua
Joined: 27 Jul 2021 Posts: 14
|
|
Posted: Wed Aug 25, 2021 11:35 am |
|
|
Thank you both for the feedback. Yeah for my case the include files were different. My project uses CCS' Drivers folder, and since the two executables generate slightly different content, the changes are reflected in the generated hex files.
Thanks again for your help!
Best,
jychua |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19590
|
|
Posted: Thu Aug 26, 2021 12:15 am |
|
|
Good,
Glad I got that one!... |
|
|
|