optimize labels, jumps

This commit is contained in:
2020-10-04 22:45:34 +02:00
parent b06ef50acd
commit 810ed2dddc
10 changed files with 227 additions and 106 deletions
+13
View File
@@ -1,11 +1,24 @@
(
(:label)
(ld r0 1)
; the procedure is surrounded by a jump and a label
(proc foo
(:label)
(nop)
(j :label)
(ret)
)
(proc bar
(:label)
(nop)
(j :label)
(ret)
)
(ld r0 2)
(halt)
(j :label)
)