Changeset 367


Ignore:
Timestamp:
Feb 25, 2010, 12:07:07 PM (9 years ago)
Author:
eamiri
Message:

minor change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/bitstream_compiler.py

    r365 r367  
    3434
    3535    def generate_code(self, s):
     36        # FRONT END
    3637        s = ast.parse(s)
    37         #return s
    3838        livelist,s = py2bitexpr.get_lives(s)
    3939        livelist.append('error_mask')
    4040        s = py2bitexpr.do_inlining(s)
    4141        s = py2bitexpr.translate_stmts(s)
     42       
     43        # OPTIMIZATION
    4244        st = py2bitexpr.gen_sym_table(s)
    4345        s=py2bitexpr.make_SSA(s, st)
     
    5052        s, livelist = py2bitexpr.process_while_loops(s)
    5153
     54        # BACK END
    5255        declarations = py2bitexpr.gen_declarations(s)
    5356        templ = self.read_template()
     
    6568            #exit()
    6669
    67         inp_file = open("parabix2.py")
    68         #inp_file = open(sys.argv[1])
     70        #inp_file = open("parabix2.py")
     71        inp_file = open(sys.argv[1])
    6972        for line in inp_file:
    7073            mycode += line
Note: See TracChangeset for help on using the changeset viewer.