Dear Gurus,
I have programmed a bicycle motor controller in assembler for the PIC 16F876A.
I'd like to repeat the exercise ( maybe better to say book) in C or C++.
So as not to waste an enormous amount of hours a couple of questions.
As the target of the program is an embedded controller, 16F876A.
1. Which is better to program in: C or C++ ?
2. Or maybe it doesn't matter?
I have available three compilers/IDEs
a)The Microchip offer of HI-TECH PICC-Lite
b)DEV-C++
c)Borland CBuilderX
I note that the a) PICC-Lite is limited to 2K memory as it is free.
Unfortunately, in the assembler version of the program that is already written, I have used up almost 4K memory.
3) Maybe the C/C++ will compact this?
4) Because perhaps C/C++ will have better maths routines?
The remaining two IDEs,
b)DEV-C++
c)Borland CBuilderX
can code and compile in both C and C++.
4) But my doubt is, can they be used with
the MPLAB to produce the final debugged
HEX file needed to program the 16F876A chip?
Thanks in advance
Fred