heptagon/compiler/obc/main/obc_compiler.ml

27 lines
1.1 KiB
OCaml
Raw Normal View History

(**************************************************************************)
(* *)
(* Heptagon *)
(* *)
(* Author : Marc Pouzet *)
(* Organization : Demons, LRI, University of Paris-Sud, Orsay *)
(* *)
(**************************************************************************)
open Misc
open Location
open Compiler_utils
open Compiler_options
let pp p = if !verbose then Obc_printer.print stdout p
let compile_program p =
(*Control optimization*)
let p = pass "Control optimization" true Control.program p pp in
2011-04-20 18:20:53 +02:00
(* Memory allocation application *)
let p = pass "Application of Memory Allocation" !do_mem_alloc Memalloc_apply.program p pp in
2011-04-21 11:24:04 +02:00
(*Dead code removal*)
let p = pass "Dead code removal" !do_mem_alloc Deadcode.program p pp in
2011-04-19 18:45:56 +02:00
p