summaryrefslogtreecommitdiff
path: root/src/compiler.sig
diff options
context:
space:
mode:
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