summaryrefslogtreecommitdiff
path: root/src/compiler.sig
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-08-15 11:26:10 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2011-08-15 11:26:10 -0400
commitd18be300ca410881c17a493753e728499371950d (patch)
tree58c04394c5e6d8876f349beceb1ef03ea01ab18a /src/compiler.sig
parent25058933836f66d25176cef718d59f96102b8a3e (diff)
Compiler frees as much memory as possible before passing control to C compiler
Diffstat (limited to 'src/compiler.sig')
-rw-r--r--src/compiler.sig5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler.sig b/src/compiler.sig
index 587b3a94..62b57856 100644
--- a/src/compiler.sig
+++ b/src/compiler.sig
@@ -65,6 +65,11 @@ signature COMPILER = sig
val compileC : {cname : string, oname : string, ename : string, libs : string,
profile : bool, debug : bool, link : string list} -> bool
+ val beforeC : (unit -> unit) ref
+ (* This function is called before beginning C compilation.
+ * The current use is for MLton to compact its heap here, to avoid hogging
+ * space after all the interesting ML code is done. *)
+
type ('src, 'dst) phase
type ('src, 'dst) transform