In principle, yes. "pike -x benchmark" or "make benchmark" will run these, if you want to compare with your setup.
Recursive Loops:
| % cat pike/lib/modules/Tools.pmod/Shoot.pmod/RecursiveLoops.pike | ... | int n=0; | int iter=16; | int d=5; | | void recur(int d) | { | if (d--) | for (int i=0; i<iter; i++) recur(d); | else | n++; | } | | void perform() | { | recur(d); | }
Non-recursive loops (Local) looks like this:
| void perform() | { | int iter = 16; | int x=0; | | for (int a; a<iter; a++) | for (int b; b<iter; b++) | for (int c; c<iter; c++) | for (int d; d<iter; d++) | for (int e; e<iter; e++) | for (int f; f<iter; f++) | x++; | | n=x; | }
The difference between "Local" and "Global" is that the variables are function-local or object-global respectively.
/ Mirar
Previous text:
2003-02-07 19:00: Subject: Re: gcc/icc
<lazy> What is Loops Recursed? A function itterating over itself? </lazy>
/ Peter Lundqvist (disjunkt)