From: SourceForge.net <no...@so...> - 2003-01-29 19:40:36
|
Bugs item #675762, was opened at 2003-01-27 23:06 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=675762&group_id=599 Category: msc51(8051) target Group: None Status: Open Resolution: None Priority: 5 Submitted By: Chris Brooks (magicshoes) >Assigned to: Bernhard Held (bernhardheld) Summary: peephole not always optimizing Initial Comment: Hi, I'm developing code for a robot, and I came across an odd case where the peephole optimizer is not always optimizing the code. I have attached the source code for the function, which is followed by the assembler listing it generated. If you look at the assembler lising the peephole optimizer used rule 182a in some cases, but not in others.... e.g. :- ; Peephole 182a use 16 bit load of DPTR mov dptr,#_spHitRight lcall _InitSetPiece ; sweep.c 329 ; sweep.c 331 ; Peephole 132 changed ljmp to sjmp sjmp 00117$ 00104$: mov dpl,#_spHitPanic mov dph,#(_spHitPanic >> 8) lcall _InitSetPiece ; sweep.c 332 ; sweep.c 334 ; Peephole 132 changed ljmp to sjmp sorry if this has already been reported. Thanks for the great compiler, keep up the good work! ---------------------------------------------------------------------- Comment By: Bernhard Held (bernhardheld) Date: 2003-01-28 00:14 Message: Logged In: YES user_id=203539 Please test again with the latest snapshot (V 2.3.3). Most likely this flaw has already been fixed. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=675762&group_id=599 |