parrotcode: Variable Argument Subroutines | |
Contents | Examples |
examples/benchmarks/addit.pir - Variable Argument Subroutines
% time ./parrot examples/benchmarks/addit.pir
An 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).
examples/benchmarks/addit.pl, examples/benchmarks/addit.pasm, examples/benchmarks/addit2.pir.
|