All Questions
5
questions
-1
votes
1
answer
1k
views
What happens when loops are compiled or interpreted?
I have came across a concept in recursion which says that when loops are compiled or interpreted then they get converted to recursive functions. If it is true how it takes place ?
3
votes
3
answers
392
views
Is loop unrolling one of the examples of "targeted" compilation and faster instruction set?
I'm taking the Computer Architecture course in my undergraduate study.
I see that in loop unrolling, one of the constraints is the number of available registers.
Since the number of registers ...
0
votes
2
answers
254
views
Do some built-in functions loop behind the scenes?
I mostly code in C# & VB, but I think this question is pretty universal. I try to limit loops to increase performance. For instance, string functions that split the string into an array, or do a ...
3
votes
0
answers
101
views
Loop Unfolding and Named Significant Bits
I've been writing a Parser Compiler for the last seven or so years, and I recently got to the point (yet again, never satisfied) of structuring the portion dealing with the portions of the language ...
0
votes
4
answers
284
views
Use functions inside a loop declaration
What's the best practice?
This :
for ($i = 0; $i < count($array); $i++) {
//stuff
}
Or, what I usually do :
$count = count($array);
for($i = 0; $i < $count; $i++) {
//stuff
}
Is it the same ...