Maker Pro
Maker Pro

Pic, c programing

D

Don Taylor

Jan 1, 1970
0
That isn't what I said.

Someone, several messages earlier in this thread made the comment that
using a C compiler would result in the 5x and 10-100x over assembly.
No particular processor family was mentioned. I believe that was where
this statement originated.

I was skeptical asked for plausible examples of this. No such examples
showed up but I did get email from one person suggesting that I try
to completely re-implement a project of his with my using C and see what
the comparison was. I haven't decided whether to try that or not.
Thats very suprising, I too would not be impressed.

Maybe I'm just using PIC and C for smaller projects, but I wouldn't
think of using floating point math on one of these to begin with :)
 
D

David L. Jones

Jan 1, 1970
0
Someone, several messages earlier in this thread made the comment that
using a C compiler would result in the 5x and 10-100x over assembly.
No particular processor family was mentioned. I believe that was where
this statement originated.

I was skeptical asked for plausible examples of this. No such examples
showed up but I did get email from one person suggesting that I try
to completely re-implement a project of his with my using C and see what
the comparison was. I haven't decided whether to try that or not.



Maybe I'm just using PIC and C for smaller projects, but I wouldn't
think of using floating point math on one of these to begin with :)

No problem with floating point on small 8bit micros, common as mud in
fact. Useful floating point work can be done in less than 2K words of
memory.

Dave :)
 
D

David L. Jones

Jan 1, 1970
0
That isn't what I said.

Yes you did!, and I quote:
"Just compare you c program running on a pic then run it on an avr. It is true
that the 18 series make a much better job. If you can put up with using 5 times
as much memory and a speed penalty of 10 to100 times slower then c is ok on
these chips."

Pretty hard to misinterpret that!

Dave :)
 
C

CBarn24050

Jan 1, 1970
0
Yes you did!, and I quote:
"Just compare you c program running on a pic then run it on an avr. It is
true
that the 18 series make a much better job. If you can put up with using 5
times
as much memory and a speed penalty of 10 to100 times slower then c is ok on
these chips."

Pretty hard to misinterpret that!

Dave :)

sorry dave but you missed the earlier bit, it's a comparison with C and asm on
the pic.
 
D

David L. Jones

Jan 1, 1970
0
sorry dave but you missed the earlier bit, it's a comparison with C and asm on
the pic.

Even so, your figures are still *way* off the mark.
In fact, C code is often faster and smaller than poorly written
assembler. High end PIC C compilers are really that good.
Obviously you have never used a proper high end C compiler on the PIC.

Dave :)
 
C

CBarn24050

Jan 1, 1970
0
Even so, your figures are still *way* off the mark.
In fact, C code is often faster and smaller than poorly written
assembler. High end PIC C compilers are really that good.
Obviously you have never used a proper high end C compiler on the PIC.

Dave :)

Well Dave I have a pic project I did 10 years ago, if you want to rewrite it in
C email me. Then we will know for sure.
 
Top