![](/img/trans.png)
[英]GCC compile to assembly: cmp followed by call instead of conditional jump
[英]Conditional Flags Assembly - cmp, test
如果查看.L1和.L2,則JIT編譯器剛剛決定反轉順序-將else
代碼放在第一位,並反轉了條件。 jle
是“如果小於或等於則跳轉”,因此它等效於C#:
if (a[idx] <= *b)
{
*b = *b + *b;
}
else
{
*b = a[idx];
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.