]> git.gag.com Git - fw/sdcc/blobdiff - doc/choices.txt
* src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything...
[fw/sdcc] / doc / choices.txt
index fd6cbab859d01cca36a164247512711ee00c6bab..d6fbe90c9b05b3e43273b0616e16ccffae8c351c 100644 (file)
@@ -192,3 +192,30 @@ Pending optimisations:
         ...
         push    iTemp4
 
+Swaps:
+        ld      hl,bc           ; 8
+        ld      bc,de           ; 8
+        ld      de,hl           ; 8
+
+vs
+        push    bc             ; 11
+        ld      bc,de           ; 8
+        pop     de              ; 11
+
+Swaps 2:
+        ld      a,h
+        ld      h,b
+        ld      b,a
+        ld      a,l
+        ld      l,c
+        ld      c,aq            ; 6*4 = 24
+
+Cleaning up the arguments to a call:
+         ld     iy,#n           ; 14
+         add    iy,sp           ; 15
+         ld     sp,iy           ; 10 = 39
+
+         pop    af              ; 5/byte
+
+
+So for 8 bytes and above use the first form.
\ No newline at end of file