I have told then this (make the lite version better to the starter developer) in the last road show, but they said if you bought the PRO you will gain saving in memory and MIPS (producing some thousands uC) so buying a poor uC and if you just need to produce one uC project, you can afford buy a expensive uC (because of the bad code optmization). [ ]s --------------------------------- Ricardo de Azambuja http://www.azamec.com.br On Thu, Jul 2, 2009 at 3:06 PM, Mike Harrison wrote: > I've not used C on a PIC for a while - thought things were rtunning a bit= slowly on a 16F818 > project. Looked at some code and was staggered by how badly it was genera= ting code for trivial > operations > A couple of snippets : > > 313: =A0 =A0 =A0 =A0 =A0 =A0 =A0 irtmr1+=3Dbittime2; =A0 // bittime 2 is = a constant, irtmr1 is a global char > =A0 090 =A0 =A0300D =A0 =A0 MOVLW 0xd > =A0 091 =A0 =A000F2 =A0 =A0 MOVWF 0x72 > =A0 092 =A0 =A00872 =A0 =A0 MOVF 0x72, W > =A0 093 =A0 =A007F8 =A0 =A0 ADDWF 0x78, F > > Four instructions where two would do > > 314: =A0 =A0 =A0 =A0 =A0 =A0 =A0 ircnt1++; > =A0 094 =A0 =A03001 =A0 =A0 MOVLW 0x1 > =A0 095 =A0 =A000F2 =A0 =A0 MOVWF 0x72 > =A0 096 =A0 =A00872 =A0 =A0 MOVF 0x72, W > =A0 097 =A0 =A007FC =A0 =A0 ADDWF 0x7c, F > > Four instructions where one would do. > > =A0"Running this compiler in PRO mode, with Omniscient Code Generation en= abled, > produces code which is typically 52% smaller than in Lite mode." > > So does 'Omniscient Code Generation' just mean doing things properly? > > I can't help but think that Microchip shipping something as poorly perfor= ming as this, even for > free, can't be doing them any favours winning potential customers as it j= ust makes the silicon look > bad. > > > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist