Basic Block: The idea of basic block is very useful in implementing the optimizing transformations on the intermediate code. A basic block is a sequence of inter mediate code statements in which the control enters at the beginning and leaves only at the end. Within a basic block control flows sequentially. Branching in flow of control can only happen in the last statement of a basic block.
Basic Block for the code:
# |
Intermediate code |
B0 |
location= -1 i=0 |
B1 |
i<100 goto B3 |
B2 |
goto B7 |
B3 |
t1=4*i t2=A[t1] if t2=x goto B5 |
B4 |
goto B6 |
B5 |
location=i |
B6 |
t3=i+1 i=t3 goto B1 |
B7 |
… |
atOptions = {
'key': 'a900f2dbf175e78754c26c6231a4b673',
'format': 'iframe',
'height': 90,
'width': 728,
'params': {}
};