search for: timeoutloop

Displaying 1 result from an estimated 1 matches for "timeoutloop".

2009 Mar 02
2
[LLVMdev] Tight overlapping loops and performance
...y cooperative multitasking system. Currently, it uses a 'timeout' counter that is decremented each time through a loop, letting me stop the loop and go to the next cooperative thread if the loop runs a little long. The asm has two overlapping loops: --- _main: mov ecx, 1000000000 timeoutloop: mov edx, 2000 loopto: dec edx jz timeoutloop dec ecx jnz loopto mov eax, 0 ret --- Which takes 1.0s on my machine. To compare, I wanted to see what LLVM performance was like and if a similar technique would yield good performance. I cooked...