77 lines
2.5 KiB
Plaintext
77 lines
2.5 KiB
Plaintext
(***********************************************************************)
|
|
(* *)
|
|
(* Objective Caml *)
|
|
(* *)
|
|
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
|
|
(* *)
|
|
(* Copyright 1996 Institut National de Recherche en Informatique et *)
|
|
(* en Automatique. All rights reserved. This file is distributed *)
|
|
(* under the terms of the Q Public License version 1.0. *)
|
|
(* *)
|
|
(***********************************************************************)
|
|
|
|
(* $Id$ *)
|
|
|
|
(* The main OCaml version string has moved to stdlib/sys.ml *)
|
|
let version = Sys.ocaml_version
|
|
|
|
let standard_library =
|
|
try
|
|
Sys.getenv "OCAMLLIB"
|
|
with Not_found ->
|
|
try
|
|
Sys.getenv "CAMLLIB"
|
|
with Not_found ->
|
|
"%%LIBDIR%%"
|
|
|
|
let standard_runtime = "%%BYTERUN%%"
|
|
let ccomp_type = "%%CCOMPTYPE%%"
|
|
let bytecomp_c_compiler = "%%BYTECC%%"
|
|
let bytecomp_c_linker = "%%BYTELINK%%"
|
|
let bytecomp_c_libraries = "%%BYTECCLIBS%%"
|
|
let native_c_compiler = "%%NATIVECC%%"
|
|
let native_c_linker = "%%NATIVELINK%%"
|
|
let native_c_libraries = "%%NATIVECCLIBS%%"
|
|
let native_partial_linker = "%%PARTIALLD%%"
|
|
let ranlib = "%%RANLIBCMD%%"
|
|
let binutils_nm = "%%BINUTILS_NM%%"
|
|
let binutils_objcopy = "%%BINUTILS_OBJCOPY%%"
|
|
let cc_profile = "%%CC_PROFILE%%"
|
|
|
|
let exec_magic_number = "Caml1999X007"
|
|
and cmi_magic_number = "Caml1999I009"
|
|
and cmo_magic_number = "Caml1999O005"
|
|
and cma_magic_number = "Caml1999A006"
|
|
and cmx_magic_number = "Caml1999Y008"
|
|
and cmxa_magic_number = "Caml1999Z009"
|
|
and ast_impl_magic_number = "Caml1999M010"
|
|
and ast_intf_magic_number = "Caml1999N009"
|
|
|
|
let load_path = ref ([] : string list)
|
|
|
|
let interface_suffix = ref ".mli"
|
|
|
|
let max_tag = 245
|
|
(* This is normally the same as in obj.ml, but we have to define it
|
|
separately because it can differ when we're in the middle of a
|
|
bootstrapping phase. *)
|
|
let lazy_tag = 246
|
|
|
|
let max_young_wosize = 256
|
|
let stack_threshold = 256 (* see byterun/config.h *)
|
|
|
|
let architecture = "%%ARCH%%"
|
|
let model = "%%MODEL%%"
|
|
let system = "%%SYSTEM%%"
|
|
|
|
let ext_obj = "%%EXT_OBJ%%"
|
|
let ext_asm = "%%EXT_ASM%%"
|
|
let ext_lib = "%%EXT_LIB%%"
|
|
let ext_dll = "%%EXT_DLL%%"
|
|
|
|
let default_executable_name =
|
|
match Sys.os_type with
|
|
"Unix" -> "a.out"
|
|
| "Win32" | "Cygwin" -> "camlprog.exe"
|
|
| _ -> "camlprog"
|