IF Statement Generation
Code for an intermediate code statement of the form (if c p1 p2) can be generated as follows:
bra c .L1
nop
p2 ! "else"
ba .L2
nop
.L1:
p1 ! "then"
.L2:
The following branch table can be used:
| op | = | < | > | |||
| c | be | bne | bl | ble | bge | bg |
| -c | bne | be | bge | bg | bl | ble |
Contents    Page-10    Prev    Next    Page+10    Index