NAME ^

examples/benchmarks/addit2.imc - Variable Argument Subroutines

SYNOPSIS ^

    % time ./parrot examples/benchmarks/addit2.imc

DESCRIPTION ^

An optimized IMC version of Joe Wilson's original PASM version of his varargs subroutines benchmark rewritten as it would be generated by a compiler using Parrot calling conventions (PDD 3).

It calls an "add it" function 500000 times in a loop and prints the result (21001097.970000).

The optimization is to pull the RetContinuation creation out of loop.

SEE ALSO ^

examples/benchmarks/addit.pl, examples/benchmarks/addit.pasm, examples/benchmarks/addit.imc.


parrot