BigEd / atalan

Automatically exported from code.google.com/p/atalan
MIT License
1 stars 0 forks source link

Try to use accumulator to move value to register #111

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In loop optimization, we currently expect it is possible to move the value of 
optimized variable to a register using single CPU instruction.
It must not be possible (for example on Z80).

Try to use some selected register (accumulator) to perform the move in two 
instructions:

::::::::::::::::
let ACC, %A
let %R, ACC
::::::::::::::::

We may use temporary variable to save the value of ACC. 

Original issue reported on code.google.com by rudla.ku...@gmail.com on 3 Dec 2012 at 12:40

GoogleCodeExporter commented 9 years ago

Original comment by rudla.ku...@gmail.com on 3 Dec 2012 at 5:14