diff options
author | Adam Chlipala <adam@chlipala.net> | 2011-08-15 11:26:10 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2011-08-15 11:26:10 -0400 |
commit | e472f946fc2316959e8480e2371233fd275b1da2 (patch) | |
tree | 58c04394c5e6d8876f349beceb1ef03ea01ab18a /src/compiler.sig | |
parent | da80f2aa1cd6326d0fc8621a5cfb0e7fd313e192 (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.sig | 5 |
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 |