Shane Tolmie collected a lot of information about PIC C here. http://www.microchipc.com/ He includes some suggestions for code optimization in his pages. I apparently I made some of the suggestions, but I don't remember which ones I actually made. -Mike -----Original Message----- From: Herbert Graf [mailto:mailinglist@FARCITE.NET] Sent: Monday, November 10, 2003 11:46 AM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: PICCLite code optimization > On Mon, 10 Nov 2003, Herbert Graf wrote: > > right now I'm doing it like this: > > (char)(number/256) > > If "number" is an unsigned int, it will also generate optimal code; > i.e., it doesn't actually do a division. Hmm, damn, well, OK, anybody have any good pointers on optimizing code for PICC? Thanks, TTYL -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.