39% speed increase from optimizer!
This commit is contained in:
15
out.asm
15
out.asm
@@ -5,11 +5,14 @@ section .text
|
||||
global _start
|
||||
_start:
|
||||
push 0
|
||||
mov rax, 1000
|
||||
cmp rax, [rsp + 0]
|
||||
setg al
|
||||
movzx rax, al
|
||||
push rax
|
||||
push 1
|
||||
.loop:
|
||||
mov rax, [rsp + 8]
|
||||
add rax, 1
|
||||
mov QWORD [rsp + 8], rax
|
||||
mov rax, 100000000
|
||||
cmp rax, [rsp + 8]
|
||||
jg .loop
|
||||
mov rax, 60
|
||||
mov rdi, [rsp + 0]
|
||||
mov rdi, 0
|
||||
syscall
|
||||
|
10
test2.grnd
10
test2.grnd
@@ -1,3 +1,7 @@
|
||||
set &var 0
|
||||
greater 1000 $var &cond
|
||||
end $cond
|
||||
set &counter 0
|
||||
set &cond 1
|
||||
@loop
|
||||
add $counter 1 &counter
|
||||
greater 100000000 $counter &cond
|
||||
if $cond %loop
|
||||
end 0
|
Reference in New Issue
Block a user