From: "D Poinsett"
Subject: Re: To C or not to C
Date: Sun, 5 Jan 2003 14:49:52 -0500
Organization: Posted via Supernews, http://www.supernews.com
References: <email@example.com> <firstname.lastname@example.org> <email@example.com> <firstname.lastname@example.org> <email@example.com>
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
Smart compiler! Which one is it?
Your standards are high. I would not fault a commercial compiler for not
detecting this special case.
"Spehro Pefhany" wrote in message
> On Sun, 5 Jan 2003 14:32:37 -0500, the renowned "D Poinsett"
> >Hi Frank,
> >Though some HC11/HC12 compiler somewhere might use the native bit set
> >instructions in this example, mine does not and I suspect that most
> >compilers do not since every processor I can think of has native
> >instructions for logical operations like val |= 0x55.
> Both the PIC and 8051 compilers I use produce native bit set
> instructions for things like val |= 0x4; For 0x55, of course, it
> do a bitwise OR.
> IMHO, anything else would be unacceptable for a commercial-quality
> Best regards,
> Spehro Pefhany
> "it's the network..." "The Journey is the reward"
> firstname.lastname@example.org Info for manufacturers:
> Embedded software/hardware/analog Info for designers: