gnupic: CCS C Compiler
Subject:
Re: CCS C Compiler
From:
Ross Mitchell ####@####.####
Date:
13 Mar 2002 03:48:48 -0000
Message-Id: <5.1.0.14.0.20020313143055.04f19090@mail.matra.com.au>
Hello Jason,
>I know it is not exactly GNU, but I was wondering if anyone has had
>good/bad experiences with the CCS C compiler for the PIC (14bit).
I have used it on a few projects. It works OK. Depending upon
how one does code, the code
quality varies from boring and mechanical to excellent. It really depends
upon using the most suitable
C description which matches the pic capabilities.
For instance:
**** Example 1
int flag, value;
if( flag & 8 )
value |= 8;
this will generate correct code but a bit on the bulky side.
**** Example 2
However If I code the same problem like this:
int flag, value;
#bit SWITCHs = flag.3
#bit SCTRL = value.3
then
if( SWITCHs )
SCTRL = 1;
will compile into two lines, (provided things are in the correct bank).
******
On the other hand the package does have the odd annoying point,
like that
when I compile a file it opens the source for write and updates it. Since
I use
a separate editor (not theirs) this means that I open the project for each
compile.
Still All in all it strikes me as reasonably good value.
Ross