Noeud « Next »: , Noeud « Previous »: T8 Goals, Noeud « Up »: T8



4.10.2 T8 Samples

Branching is of course a most interesting feature to exercise:

     1 | 2 | 3
     File 135: ors.tig
     $ tc -I ors.tig
     # == Final assembler ouput. == #
     # Routine: Main
     t_main:
             move    t4, $s0
             move    t5, $s1
             move    t6, $s2
             move    t7, $s3
             move    t8, $s4
             move    t9, $s5
             move    t10, $s6
             move    t11, $s7
     l5:
             li      t1, 1
             bne     t1, 0, l3
     l4:
             li      t2, 2
             bne     t2, 0, l0
     l1:
     l2:
             j       l6
     l0:
             j       l2
     l3:
             li      t3, 1
             bne     t3, 0, l0
     l7:
             j       l1
     l6:
             move    $s0, t4
             move    $s1, t5
             move    $s2, t6
             move    $s3, t7
             move    $s4, t8
             move    $s5, t9
             move    $s6, t10
             move    $s7, t11

     Example 136: tc -I ors.tig
     $ tc -F ors.tig
     Example 137: tc -F ors.tig
     assignments.ext/138.jpg

     File 138: Main-Main-flow.dot
     $ tc -V ors.tig
     Example 139: tc -V ors.tig
     assignments.ext/140.jpg

     File 140: Main-Main-liveness.dot
     $ tc -N ors.tig
     Example 141: tc -N ors.tig
     assignments.ext/142.jpg

     File 142: Main-Main-interference.dot