Home
>
Courses
>
Winter 2001
>
CS134b
> Lab4
[
Lab3
,
Lab5
]
CS134b Lab 4: FIR Generation
Problem:
lab4.pdf
; Programs provided:
fcc-20010219.tgz
.
Our solution:
README
. Whole bundle of programs
fcc-lab4.tgz
.
fc_ast/
fc_ast_lex.mll
,
fc_ast_parse.mly
fc_ir/
fc_ir_ast.ml
fc_fir/
fc_ir_cont.ml
,
fc_ir_esc.ml
,
fc_ir_closure.ml
,
fc_fir_dead.ml
Here are the IR files and run results on the test programs:
test1.c
:
test1.ir
,
test1.out
test2.c
:
test2.ir
,
test2.out
test3.c
:
test3.ir
,
test3.out
test4.c
:
test4.ir
,
test4.out