Displaying 2 results from an estimated 2 matches for "mysleep".
Did you mean:
msleep
2011 Nov 13
0
[LLVMdev] Thumb-2 code generation error in Apple LLVM at all optimization levels
I am thinking now that the Thumb-2 machine code generated by Apple's
LLVM 3.0+svn compiler is correct, but that when a Release build is
generated, the use of conditional machine instructions confuses GDB.
I boiled my apparently erroneous source down to:
- (void) mySleep: (int)sleepTime
{
if ( sleepTime >= 4000 ){
usleep( sleepTime );
}
return;
}
If I set a breakpoint on the usleep call, the breakpoint will be hit
but usleep() will not actually be called.
I verified this by passing in 5000. When I do, I can step down into
the shared libra...
2011 Nov 12
2
[LLVMdev] Thumb-2 code generation error in Apple LLVM at all optimization levels
On Fri, Nov 11, 2011 at 5:26 PM, Owen Anderson <resistor at mac.com> wrote:
> This is not quite right. It does have a 12-bit immediate field, but it is decomposed into an 8-bit base immediate and a 4-bit right-rotate value. Your example of #4000 is encoded as a base value of 0xfa and a rotate of 0xe, which is correct.
>
>> I don't know what the "it hs" instruction