I focused on the optimization when I implement projects.
command | # of instructions | assembly |
---|---|---|
add |
5 instructions | |
sub |
5 instructions | |
neg |
3 instructions | |
eq |
8 instructions if x = y | |
11 instructions otherwise | ||
gt |
10 instructions if x > y | |
12 instructions otherwise | ||
lt |
10 instructions if x < y | |
12 instructions otherwise | ||
and |
5 instructions | |
or |
5 | |
not |
3 |