Ignore:
Timestamp:
Dec 11, 2010, 6:35:42 AM (9 years ago)
Author:
cameron
Message:

SIMD register dump facility for debugging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/compiler2.py

    r806 r810  
    33#   equivalent block-by-block code in C.
    44#
    5 # (c) 2009 Ehsan Amiri and Robert D. Cameron
     5# (c) 2010 Robert D. Cameron, Ehsan Amiri, Ken Herdy
    66# All rights reserved.
    77# Licensed to International Characters, Inc. under Academic Free License 3.0
     
    3737        f.close()
    3838
    39     def generate_code(self, input_string):
     39    def generate_code(self, input_string, options):
    4040        # FRONT END
    4141        s = ast.parse(input_string)
     
    4444        xfrmr.gen_declarations()
    4545        xfrmr.gen_initializations()
    46         xfrmr.xfrm_block_stmts()     
     46        xfrmr.xfrm_block_stmts(options.add_dump_stmts)     
    4747        xfrmr.add_loop_carryQ_adjust()
    4848        # BACK END
     
    8282               
    8383        else:
    84                 s = Program(options.output_filename, options.template_filename).generate_code(input_string)
     84                s = Program(options.output_filename, options.template_filename).generate_code(input_string, options)
Note: See TracChangeset for help on using the changeset viewer.