2 # Copyright (C) 2005-2009, Parrot Foundation.
4 # OUTPUT="Ack(3, 9) = 4093\n"
6 # ./parrot -Oc -R cgp-jit
8 # Seems to be an old benchmark, now deprecated by the shootout
10 # ackermann - ack(3, 9) is default
11 # shootout runs ack(3, 11)
12 # time for ack(3,11): 0.8s (AMD X2@2000)
24 if argc == 2 goto xdefault
33 $P0.'recursion_limit'(100000)
36 args = new 'ResizableIntegerArray'
40 $S0 = sprintf "Ack(%d, %d) = %d\n", args
54 .tailcall ack($I0, $I1)
59 .tailcall ack($I4, $I3)
66 # vim: expandtab shiftwidth=4 ft=pir: