[Coco] Converting ANSI-C to K&R(Microware) - Ansifront didn't work

Steven Hirsch snhirsch at gmail.com
Tue Jan 11 07:02:06 EST 2011


On Mon, 10 Jan 2011, Willard Goosey wrote:

> I would like to develop a pattern for copt2 to clean up after
> ansifront's "unsigned char" hack (which is to "(X & 255)" all
> operations with the "unsigned char".  I imagine this leads to lots of
> "sex \n andd #$FF" in the assembly which could just be replaced with
> "clra" or something.  But that would require staring at lots of
> compiler output.

Anything that literal is fodder for a peephole optimizer.

-- 




More information about the Coco mailing list