Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /sml/trunk/src/runtime/kernel/load-ml.c
ViewVC logotype

Annotation of /sml/trunk/src/runtime/kernel/load-ml.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 651 - (view) (download) (as text)

1 : monnier 249 /* load-ml.c
2 :     *
3 :     * COPYRIGHT (c) 1993 by AT&T Bell Laboratories.
4 :     *
5 :     */
6 :    
7 :     #include <stdio.h>
8 :     #include "ml-base.h"
9 :     #include "ml-state.h"
10 :     #include "gc.h"
11 :     #include "heap-io.h"
12 :    
13 :    
14 :     /* LoadML:
15 :     *
16 :     * Load a heap image from a file and resume execution. The arguments allocSz,
17 :     * numGens and cacheGen are possible command-line overrides of the heap parameters
18 :     * specified in the image being imported (non-negative values signify override).
19 :     */
20 :     void LoadML (const char *loadImage, heap_params_t *heapParams)
21 :     {
22 :     ml_state_t *msp;
23 :    
24 :     msp = ImportHeapImage (loadImage, heapParams);
25 :    
26 :     #ifdef HEAP_MONITOR
27 :     if (HeapMon_Init(msp->ml_heap) == FAILURE)
28 :     Die("unable to start heap monitor");
29 :     #endif
30 :    
31 :     InitFaultHandlers ();
32 :    
33 :     #ifdef SIZES_C64_ML32
34 :     /* patch the 32-bit addresses */
35 :     PatchAddrs ();
36 :     #endif
37 :    
38 :     RunML (msp);
39 :    
40 :     } /* end of LoadML */

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0