Welcome to the CHICKEN Scheme pasting service

fx ops Fibonacci added by DougT on Thu Jul 22 16:43:53 2021

;;; csc  -O4 -block -lfa2 fib5B.scm  37 seconds

(import (scheme time))
(import (chicken fixnum))

;(: fib (fixnum -> fixnum))
(define fib 
  (lambda (x) 
      (if (fx<= x 1)
          x   
          (+ (fib (fx- x 1)) (fib (fx- x 2))))))    

(define (main)
  (let* (  [fibNum 45] [result (fib fibNum)]  )   
    (display "(fib 45) = ")
    (display result) (newline) ))  

(let ( (start (current-jiffy)) )
  (main)
  (display (- (current-jiffy) start) )
  (display " ms elapsed time") (newline))
~                       

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What's the Makefile target to generate the bootstrap compiler of CHICKEN?
Visually impaired? Let me spell it for you (wav file) download WAV