Re: Pic, c programing

From: Don Taylor (dont_at_agora.rdrop.com)
Date: 09/14/04


Date: Tue, 14 Sep 2004 15:26:32 -0500

cbarn24050@aol.com (CBarn24050) writes:
>>Your statements that a C compiler for the PIC takes 5x the code or
>>10-100x the time of an AVR one is just plain silly and ill-informed.

>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.

>>. The CodeVision compiler I
>>used took more code space for floating point than my Hitech PICC
>>compiler on the PIC 16 series. I was not that impressed.

>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 :)



Relevant Pages

  • Re: Im not the only one who values interval-arithmetic
    ... I see rounding mode discussed in regard to floating ... It's only used by the compiler ... name of the package and something about how it works? ... coerced to an interval by mapping NUM -> before some ...
    (comp.lang.lisp)
  • Re: Hercules
    ... Although D-format floating point does use 64 bits to represent a floating point number, I don't call the instructions which process these numbers "64-bit instructions". ... In PL/I terms, instruction I received way back when indicated that FLOAT DECwas the way to go to use E-format in the compiled code, and FLOAT DECwas the way to go to use D-format in the compiled code. ... My reference to Fujitsu was simply to record my experience that Fj had gone to the trouble of making their PL/I compiler sufficiently "plug compatible" with IBM's Optimizing compiler that ...
    (comp.lang.pl1)
  • Re: Simple Random Number Generator/Function - Cliff RNG
    ... Tim and Alex: ... This has certainly informed me greatly on this 'PRNG'. ... PRNGs with the extra baggage of this floating point fuzziness! ... not just the compiler. ...
    (sci.math)
  • Re: Modelling Disjoint Subtypes
    ... plus sign is represented by a floating point addition operation. ... In the case of a Java compiler, ... two multiplies (x.numerator * y.numerator, ... because temperature does not inherently have ratio. ...
    (comp.databases.theory)
  • Re: Floating Point and C casts? (was: Re: typecast internals)
    ... You are mixing a discussion of integer and floating point storage ... What particular data conversion problem are you really ... formats), but these formats are not typically implemented off the VAX ... IEEE floating point conversions are detailed in the compiler manuals ...
    (comp.os.vms)