CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Building with Same Compiler Different IDE Version

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
jychua



Joined: 27 Jul 2021
Posts: 14

View user's profile Send private message

Building with Same Compiler Different IDE Version
PostPosted: Tue Aug 10, 2021 10:03 am     Reply with quote

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

View user's profile Send private message

Re: Building with Same Compiler Different IDE Version
PostPosted: Tue Aug 10, 2021 5:24 pm     Reply with quote

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: 19219

View user's profile Send private message

PostPosted: Wed Aug 11, 2021 12:07 am     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Aug 25, 2021 11:35 am     Reply with quote

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: 19219

View user's profile Send private message

PostPosted: Thu Aug 26, 2021 12:15 am     Reply with quote

Good,
Glad I got that one!... Smile
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group