Building Standalone Programs
The following instructions for building standalone programs
with SML/NJ are adapted from the
Apr 10, 2000 SML/NJ
110.27 release README:
Building standalone programs
The command ml-build can be used to build standalone programs.
ml-build takes three arguments:
- the name of the CM library that implements and exports the "main"
function of your program
- the name of the "main" function of your program as exported by 1.
(The function must have a type that makes it suitable as an argument
to SMLofNJ.exportFn.)
- the name of the heapfile to be generated
(See also the SML/NJ
Compilation Manager (CM) Manual sections 5.1.10 and 15.1.)
Back to Cynbe's SML/NJ Internals Page
Cynbe ru Taren
Last modified: Tue Feb 1 14:42:19 CST 2005