diff options
| author | Mica White <botahamec@outlook.com> | 2024-08-15 20:23:26 -0400 |
|---|---|---|
| committer | Mica White <botahamec@outlook.com> | 2024-08-25 19:24:37 -0400 |
| commit | 509e5ce1e17417a70b9bcce8bc6e33c05106811d (patch) | |
| tree | 5b1fe60a65b5f42a90023ead03c32336033afa1f /scripts/bin/ex.wat | |
| parent | db9aa9f1bf49e8bede384b9ceb1e1fb82b522799 (diff) | |
Start profiling
Diffstat (limited to 'scripts/bin/ex.wat')
| -rw-r--r-- | scripts/bin/ex.wat | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/scripts/bin/ex.wat b/scripts/bin/ex.wat index af461bd..3f8e609 100644 --- a/scripts/bin/ex.wat +++ b/scripts/bin/ex.wat @@ -1,29 +1,29 @@ -(module - (import "alligator" "abs" (func $abs (param i32) (result i32))) - (func $add1 - (local $i i32) - (loop $myloop - local.get $i - i32.const 1 - i32.add - local.set $i - - local.get $i - call $abs - - local.get $i - i32.const 40 - i32.lt_s - br_if $myloop - - drop - ) - ) - (func $add2 nop) - (export "begin" (func $add2)) - (export "update" (func $add1)) - (memory (;0;) 16) - (export "memory" (memory 0)) - (global $base i32 (i32.const 1)) - (export "__heap_base" (global $base)) -) +(module
+ (import "alligator" "abs" (func $abs (param i32) (result i32)))
+ (func $add1
+ (local $i i32)
+ (loop $myloop
+ local.get $i
+ i32.const 1
+ i32.add
+ local.set $i
+
+ local.get $i
+ call $abs
+
+ local.get $i
+ i32.const 40
+ i32.lt_s
+ br_if $myloop
+
+ drop
+ )
+ )
+ (func $add2 nop)
+ (export "begin" (func $add2))
+ (export "update" (func $add1))
+ (memory (;0;) 16)
+ (export "memory" (memory 0))
+ (global $base i32 (i32.const 1))
+ (export "__heap_base" (global $base))
+)
|
