Menu

#850 peephole optimizer rules

closed-rejected
nobody
assembler (27)
5
2013-05-25
2004-12-25
Anonymous
No

The format of a rule file is like this :-

replace
{
mov dpl,%1
mov dph,(%1 + 1)
}
by
{
; peephole custom rule, use DPTR as a single
register.
mov dptr,#%1
}

This tells the optimizer to change all the inefficient
mov's to the single mov. It also places the comment in
the file so you know why it is there. There are various
other options you can put in the file, which are all fully
covered in the manual. Be warned You can easily wreck
things by using custom rules which cause bugs in your
program. The compiler doesn't check you have done
something stupid. so...

Then how i decrement data pointer in my program?
The below one is also not available-
DEC DPTR

Then how i should manage this ,pleas help me.

with warm regards

-sun

Discussion

  • Maarten Brock

    Maarten Brock - 2004-12-27
    • status: open --> closed-rejected
     
  • Maarten Brock

    Maarten Brock - 2004-12-27

    Logged In: YES
    user_id=888171

    Thsi is a question not a bug. Moved it to the Help Forum.

     
  • Maarten Brock

    Maarten Brock - 2004-12-27
    • milestone: --> non_bugs
     

Log in to post a comment.