On Thu, 6 Feb 2003 09:23:44 -0800, you wrote: >Andy, > >I disagree you use C because you are good at C. > >Andre > > > >-----Original Message----- > > >For real optimization use C, for speed of development use C. > >I think Walter Banks (of BYTECRAFT fame) pretty clearly summed up why C >compilers can out-optimize a lot of assembly. This may be true of an 'ideal' compiler, but my experience of the Hitech = Pic16 C is that although very reliable, it is not great at optimising for code space, making poor = use of the possibilities of skip instructions. Integration with MPLAB is also not great for = debugging. C also has some inherent inefficiencies with RAM, although the compiler = will usually compensate by cleverer overlaying of locals.=20 I use assembly and C, depending on the nature of the project. A lot of = bit-twiddly hardware bashing type stuff is often easier, quicker and clearer in assembly. C easily = wins when there's lots of maths or complex control flows. A mixture is often the optimal solution.=20 >Andy > >At 01:38 PM 1/6/03 +1100, you wrote: >>The PIC maths libraries are not difficult to incorporate and use - for >real >>optomization - use assembly, for speed of development, use C, but >assembly >>is still the choice. >>Just my opinion ... >> >>-----Original Message----- >>From: pic microcontroller discussion list >>+AFs-mailto:PICLIST+AEA-MITVMA.MIT.EDU+AF0-On Behalf Of Christopher >Gill >>Sent: Thursday, 6 February 2003 3:54 am >>To: PICLIST+AEA-MITVMA.MIT.EDU >>Subject: +AFs-PIC+AF0-: C Language V's Assembler >> >> >>Hi there >>I have been using PICs since last June programming in assembler, I am >now >>looking a using the C language. What are the advantages/disadvantages >of C >>over the assembly language. Am I right in thinking that there are built >in >>'modules' for division, multiplication etc. Are there any good online >>tutorials on programming in C for complete beginers? >> >>Cheers >>chris >> >>-- >>http://www.piclist.com hint: To leave the PICList >>mailto:piclist-unsubscribe-request+AEA-mitvma.mit.edu >> >>-- >>http://www.piclist.com hint: To leave the PICList >>mailto:piclist-unsubscribe-request@mitvma.mit.edu > >-- >http://www.piclist.com hint: PICList Posts must start with ONE topic: >[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads