----- Original Message ----- From: "Mike Mansheim" To: Sent: Wednesday, April 03, 2002 5:04 PM Subject: Re: [pic] c compiler comparison > > eth_length = ((UI)workbuff[3] << 8) + (UI)workbuff[2]; 15 instructions > eth_length = ((UI)workbuff[3] * 256) + (UI)workbuff[2]; 47 instructions! > with #byte's: 4 instructions Hi Just ran this through CCS PCM 3.082 for the 16f877 and it now generates 15 instructions (same code) for both cases. So I guess they have improved things for version 3! Andy -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics