Wrench Report
[github] [isa_docs] [variants] [examples] [scratch]

/* variant: example factorial-recursive.s + factorial-recursive-5.yaml */

/* author: wrench */

/* wrench: 0.0.6.4 */

/* comment */

Computes 5! = 120 with a function that calls itself. Each call gets its own frame on the operand stack.

Source: example/wasm32/factorial-recursive.s
Config: example/wasm32/factorial-recursive-5.yaml
ISA:    wasm32
/* assembler_code */

/* simulation_config */

/* simulation_result */

$ wrench --version
0.0.6.4
/usr/local/bin/wrench --isa wasm32 /app/example/wasm32/factorial-recursive.s -c /app/example/wasm32/factorial-recursive-5.yaml --stats
ExitCode 0

/* testcase_result */