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 CCS Technical Support

Check CCS C compiler version

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



Joined: 09 Feb 2012
Posts: 1

View user's profile Send private message

Check CCS C compiler version
PostPosted: Thu Feb 09, 2012 8:42 am     Reply with quote

Hi,

I bought the compiler four years ago (July 2009), in order to develop a program on PIC18F4550.

Two weeks ago (January 2012), my company bought the same compiler to compile the same program for the same PIC.

But .hex and .sta files are totally different.
Moreover, the PIC failed.

The new compiler seem to optimize code differently.

My questions are :
.
1-How I can easily check the version of the CCS C compiler for PICĀ® PIC10, PIC12, PIC16 and PIC18 families ?

2-Does last versions of compiler, are compatible with older?

Thanks by advance
temtronic



Joined: 01 Jul 2010
Posts: 9232
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Feb 09, 2012 9:29 am     Reply with quote

1) version of the compiler is at the top of the listing file ( programname.lst)

2) versions are 'backward' compatible

Code can be different size due to 'tweaking' of the compiler to fix bugs.
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Thu Feb 09, 2012 10:30 am     Reply with quote

Quote:
versions are 'backward' compatible

They are - in our dreams.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Thu Feb 09, 2012 1:36 pm     Reply with quote

FvM wrote:
Quote:
versions are 'backward' compatible

They are - in our dreams.
You are being cynical. Mostly the code is backwards compatible.
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Thu Feb 09, 2012 1:40 pm     Reply with quote

Quote:

Mostly the code is backwards compatible.


yeah - MOSTLY

between 4.085 and 4.127
changes were made to DEVICE file FUSE arguments
that have been a recompile pain in my Butt.

just saying Very Happy Very Happy Arrow
temtronic



Joined: 01 Jul 2010
Posts: 9232
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Feb 09, 2012 1:57 pm     Reply with quote

Yeah, by 'compatible' I mean a program that ran on an older version will run on a newer one.
Unlike getting XP or 7 to run a QB program.....
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Thu Feb 09, 2012 2:13 pm     Reply with quote

to be honest - ( and paraphrase Winston Churchill)
in reality -the CCS compiler is the worst compiler -
EXCEPT for all the rest ......
and THATS why we are all here still i bet
Very Happy Very Happy Very Happy
bkamen



Joined: 07 Jan 2004
Posts: 1615
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Fri Feb 10, 2012 2:12 am     Reply with quote

asmboy wrote:
to be honest - ( and paraphrase Winston Churchill)
in reality -the CCS compiler is the worst compiler -
EXCEPT for all the rest ......
and THATS why we are all here still i bet
Very Happy Very Happy Very Happy


yea... been working in C18 a bunch lately.

What a drag.

So many things in CCS we tend to take for granted...
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
Arakel



Joined: 06 Aug 2016
Posts: 107
Location: Moscow

View user's profile Send private message Visit poster's website AIM Address

I can not find the file for the version
PostPosted: Sat Jan 14, 2017 6:42 am     Reply with quote

Good day! I am sorry for openning an old thread but I can not find this file. Is the version in "propertiles" accurate?

[img]https://www.dropbox.com/s/9lwziy5it32pznd/PIC-C-Version.png?dl=0[/img]
_________________
Yo! I love learning and technology! I just do not have experience so do not be angry if I ask a stupid question about a detail! From so much to remember sometimes I forget the details in order to remember the big problems!
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

PostPosted: Sat Jan 14, 2017 7:05 am     Reply with quote

No.
One place to look is the .LST file
If you have the IDE you can look under Help.
Anther way is the +V switch in command line mode
_________________
Google and Forum Search are some of your best tools!!!!
Arakel



Joined: 06 Aug 2016
Posts: 107
Location: Moscow

View user's profile Send private message Visit poster's website AIM Address

PostPosted: Sat Jan 14, 2017 7:26 am     Reply with quote

Thank you! Which is the best version according to you?
_________________
Yo! I love learning and technology! I just do not have experience so do not be angry if I ask a stupid question about a detail! From so much to remember sometimes I forget the details in order to remember the big problems!
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

PostPosted: Sat Jan 14, 2017 7:30 am     Reply with quote

I have a subscription and almost always run the latest unless
some bug crops up. Then I step back a version.
_________________
Google and Forum Search are some of your best tools!!!!
Ttelmah



Joined: 11 Mar 2010
Posts: 19529

View user's profile Send private message

PostPosted: Sat Jan 14, 2017 9:13 am     Reply with quote

This is why, when I 'archive' a set of code, I always include the compiler that was used with it.

Generally I run 'reasonably up to date', unless problems appear. Recently on one project I had to stop at 5.058 (looking into 'why' now), because it suddenly developed problems on the next version.

Now generally the compiler is very 'reverse compatible', but not entirely. One thing already mentioned, was fuses. Historically the older compilers applied their own 'default' values to some fuses. Later CCS switched, and leave all fuses at their 'erased' state, unless you specifically set them. This is by far the 'better' route (avoiding things being done without telling you), but can lead to compatibility problems with older code. There are also quite significant changes with the major versions (V5 does quite a few things differently in the background - low level code that talks directly to the hardware may see problems as a result).

So work 'up to date', but keep a record of what compiler you use, and a copy of the compiler as well.

As a comment, the first thing I do after installing a new compiler, is rename ccsdownload.exe. I don't want the compiler version changing 'mid project'. Happy to load a new version and try it separately (just install into named/numbered directories), but I want 100% control of changes.
temtronic



Joined: 01 Jul 2010
Posts: 9232
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sat Jan 14, 2017 3:38 pm     Reply with quote

re: Mr. T's comment about fuses.

Having been 'bit' a couple of times about 'questionable fuses', I now have an 'include file' just for fuses. Each PIC type gets it's own with a known set of working fuses. '46k22base.fuz' is the file that contains EVERY fuse, one per line for the PIC18F46K22. Every line has a comment (old assembler rule), even the obvious lines. The fuz extension I think is unique, at least on my PC. It's not C code, and fuz sounds like fuze to me.
If a project needs fuses configured differently than the 'base' config, the file becomes 46k22_projectname.fuz.
One big benefit of theis 'fuses file' is that the main program is cleaner. You also minimize the risk of a typo creeping in causing no end of confusion at 3AM. Besides my typing is terrible, thanks to an unSkilsaw incident...

Jay
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