On 05.06.2015 16:12, Simon Dible wrote:
> Hi
> 
> I'm working on an 8051 FPGA image that has broken logical operations on 
> the carry flag, at this time its not viable to fix them. Is there some 
> way to make sdcc for the 8051 not generate these instructions, or work 
> out what C code would generate them to avoid using it?
> 
> ORL C, /bit
> ORL C, bit
> ANL C, /bit
> ANL C, bit
> MOV C, bit
> 
> Many thanks
> Simon

Maybe you can use custom rules for the peephole optimizer to replace
these instructions by others in the generated code?

Philipp



Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to