The SML/NJ interactive system, which includes the compiler, is itself created by linking modules from various libraries. Some of these libraries can also be used in user programs. Examples are the Standard ML Basis Library $/basis.cm, the SML/NJ library $/smlnj-lib.cm, and the ML-Yacc library $/ml-yacc-lib.cm.
If a module from a library is used by both the interactive system and
a user program running under control of the interactive system, then
CM will let them share code and dynamic state. Moreover, the affected
portion of the library will never have to be ``relinked''.