Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ! equiv c code:
- ! int x = 0;
- ! while(x < 20) {
- ! /* statements */
- ! }
- !
- ! Unoptimzed:
- !
- clr %l0
- loop:
- cmp %l0, 20
- bge :end_loop
- nop
- /* statements */
- ba loop
- nop
- end_loop:
- !
- ! Optimized:
- !
- clr %l0
- cmp %l0, 20
- bge end_loop
- nop
- loop:
- /* statements */
- cmp %l0, 20
- bl loop
- nop
- end_loop:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement