Thank you for the example. I'm very impressed that you look at the generated assembly code.
BoostC seems to be missing a toggle_bit() function to compliment their set_bit() and clear_bit() functions. This is one of those situations where having a good assembler background comes in handy as you test different C instruction constructs to find the one that generates the assembler code you're lookin' for (grin).
Anyway, you'll find the following BoostC instruction construct will generate the correct or preferred single word
btg lata,7 assembler instruction;
Mike
You found that one quick! I was busy changing the neighbor's spark plugs and no time to play...
I would have tried ~= first, but...
It would be worth giving feed back to Pavel on this one. They seem to take most bug reports and enhancement requests seriously.
If we don't look at the price tag, because my collage will finance it, then only remains quality of compiler itself and service(demo code, boards).
...
Hi-Tech does look like best but with only 14 example programs vs 130 from css, there is no comparison, also css has good community, but Hi-Tech is recommended from Microchip and has
this, which is mainly for Hi-Tech PICC. ...
Sorry, I should have given the link the HiTech's forums as well:
HI-TECH Software Forums: Viewing forum: PICmicro & dsPIC
It does look like they are active, but I don't think they enjoy the community CCS does. This is a quess though, as I haven't been on the hiTech forums much at all. Admittedly, the SB forums do not have any new posts most days, and I have seen questions go unanswered. CCS forums are worth visiting even if you don't use their tools!
That said, I do think HiTech has lead the pack for a number of years, and they probably are still at the top end, however I don't make any profit and often make programs which do not fit in 2k program space...
I think both HiTech and C18 are based on gcc, but not sure about that. (I know the best ARM compilers are gcc based, and are high priced.) This sort of sheds some light on the price differences...
Open source software can still make money, and you can see this with some of the Linux distributions; the provider is selling support. Better support sells for more.
Years ago, I was heavy into Frontier, a scripting and data base tool, which was open source. When the product started to shine (It was the first to develop Remote Procedure Calls) it went commercial, and I was left out, as support was about $1000 for six months or so...
The CCS demo compiler also ships with MPLAB. I am not sure which parts it supports.
On the other hand the fact that Microchip is releasing their own compilers speaks volumes. They are pushing their own (where they exist).
The CCS compiler installed with MPLab, as far as I know is fully functional, but for the 12xxx chips.
At one time Microchip had a compiler for 16cxx PICs, but dropped it. I think they did not see value in pursuing it as the 12x and 16x were difficult to make a compiler for...