Advertisement
emin_int11

static-branch

Jan 12th, 2021
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. for(int ii = 0 ; ii < 10; ii ++){
  2. }
  3.  
  4. square():
  5. push rbp
  6. mov rbp, rsp
  7. mov DWORD PTR [rbp-4], 0
  8. .L3:
  9. cmp DWORD PTR [rbp-4], 9
  10. jg .L4 < ========= *static branch* forward branch not taken 85%
  11. add DWORD PTR [rbp-4], 1
  12. jmp .L3 < ========= *static branch* backward branch taken
  13. .L4:
  14. nop
  15. pop rbp
  16. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement