ocaml/testasmcomp/fib.cmm

6 lines
112 B
Plaintext

(function "fib" (n: int)
(if (< n 2)
1
(+ (app "fib" (- n 1) int)
(app "fib" (- n 2) int))))