1995-08-09 08:06:35 -07:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
1996-04-30 07:53:58 -07:00
|
|
|
(* Objective Caml *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* *)
|
|
|
|
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
1996-04-30 07:53:58 -07:00
|
|
|
(* Copyright 1996 Institut National de Recherche en Informatique et *)
|
1998-10-02 05:40:44 -07:00
|
|
|
(* en Automatique. Distributed only by permission. *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
(* $Id$ *)
|
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
(* Command-line parameters *)
|
|
|
|
|
|
|
|
let objfiles = ref ([] : string list) (* .cmo and .cma files *)
|
|
|
|
and ccobjs = ref ([] : string list) (* .o, .a and -lxxx files *)
|
|
|
|
|
|
|
|
let compile_only = ref false (* -c *)
|
|
|
|
and exec_name = ref "a.out" (* -o *)
|
|
|
|
and archive_name = ref "library.cma" (* -o *)
|
1996-11-07 03:01:32 -08:00
|
|
|
and object_name = ref ("camlprog" ^ Config.ext_obj) (* -o *)
|
1996-04-29 06:24:35 -07:00
|
|
|
and include_dirs = ref ([] : string list)(* -I *)
|
1995-05-04 03:15:53 -07:00
|
|
|
and print_types = ref false (* -i *)
|
|
|
|
and make_archive = ref false (* -a *)
|
1996-11-29 10:36:42 -08:00
|
|
|
and debug = ref false (* -g *)
|
1995-10-09 06:37:11 -07:00
|
|
|
and fast = ref false (* -unsafe *)
|
1995-05-04 03:15:53 -07:00
|
|
|
and link_everything = ref false (* -linkall *)
|
|
|
|
and custom_runtime = ref false (* -custom *)
|
1996-11-07 03:01:32 -08:00
|
|
|
and output_c_object = ref false (* -output-obj *)
|
1995-05-04 03:15:53 -07:00
|
|
|
and ccopts = ref ([] : string list) (* -ccopt *)
|
|
|
|
and nopervasives = ref false (* -nopervasives *)
|
1996-04-29 06:24:35 -07:00
|
|
|
and preprocessor = ref(None : string option) (* -pp *)
|
1996-09-09 05:37:18 -07:00
|
|
|
and thread_safe = ref false (* -thread *)
|
1997-05-13 11:28:25 -07:00
|
|
|
and noassert = ref false (* -noassert *)
|
1997-05-15 06:30:31 -07:00
|
|
|
and verbose = ref false (* -verbose *)
|
1998-10-02 05:40:44 -07:00
|
|
|
and use_prims = ref "" (* -use_prims ... *)
|
1998-04-14 07:48:34 -07:00
|
|
|
and use_runtime = ref "" (* -use_runtime ... *)
|
|
|
|
and make_runtime = ref false (* -make_runtime *)
|
1998-08-06 06:27:38 -07:00
|
|
|
and gprofile = ref false (* -p *)
|
1998-11-06 07:39:43 -08:00
|
|
|
and c_compiler = ref Config.bytecomp_c_compiler (* -cc *)
|
1999-09-08 10:43:13 -07:00
|
|
|
let dump_parsetree = ref false (* -dparsetree *)
|
|
|
|
and dump_rawlambda = ref false (* -drawlambda *)
|
1995-12-15 02:21:58 -08:00
|
|
|
and dump_lambda = ref false (* -dlambda *)
|
1995-05-04 03:15:53 -07:00
|
|
|
and dump_instr = ref false (* -dinstr *)
|
1995-05-22 04:58:51 -07:00
|
|
|
|
1995-07-20 00:52:12 -07:00
|
|
|
let keep_asm_file = ref false (* -S *)
|
1995-07-13 10:17:20 -07:00
|
|
|
let optimize_for_speed = ref true (* -compact *)
|
1995-07-02 09:50:39 -07:00
|
|
|
|
|
|
|
and dump_cmm = ref false (* -dcmm *)
|
|
|
|
let dump_selection = ref false (* -dsel *)
|
|
|
|
let dump_live = ref false (* -dlive *)
|
|
|
|
let dump_spill = ref false (* -dspill *)
|
|
|
|
let dump_split = ref false (* -dsplit *)
|
1995-08-24 06:25:21 -07:00
|
|
|
let dump_scheduling = ref false (* -dscheduling *)
|
1995-07-02 09:50:39 -07:00
|
|
|
let dump_interf = ref false (* -dinterf *)
|
|
|
|
let dump_prefer = ref false (* -dprefer *)
|
|
|
|
let dump_regalloc = ref false (* -dalloc *)
|
|
|
|
let dump_reload = ref false (* -dreload *)
|
1995-08-13 02:31:50 -07:00
|
|
|
let dump_scheduling = ref false (* -dscheduling *)
|
1995-07-02 09:50:39 -07:00
|
|
|
let dump_linear = ref false (* -dlinear *)
|
1995-07-10 02:48:27 -07:00
|
|
|
let keep_startup_file = ref false (* -dstartup *)
|
1999-05-15 08:10:00 -07:00
|
|
|
let dump_combine = ref false (* -dcombine *)
|
1996-10-22 06:37:20 -07:00
|
|
|
|
|
|
|
let native_code = ref false (* set to true under ocamlopt *)
|
1997-02-16 09:20:11 -08:00
|
|
|
|
|
|
|
let inline_threshold = ref 10
|