4 static const cell image_magic = 0x0f0e0d0c;
5 static const cell image_version = 4;
10 /* all pointers in the image file are relocated from
11 relocation_base to here when the image is loaded */
12 cell data_relocation_base;
15 /* code relocation base */
16 cell code_relocation_base;
17 /* size of code heap */
19 /* tagged pointer to t singleton */
21 /* tagged pointer to bignum 0 */
23 /* tagged pointer to bignum 1 */
25 /* tagged pointer to bignum -1 */
27 /* Initial user environment */
28 cell userenv[USER_ENV];
31 struct vm_parameters {
32 const vm_char *image_path;
33 const vm_char *executable_path;
34 cell ds_size, rs_size;
35 cell gen_count, young_size, aging_size, tenured_size;
44 void load_image(vm_parameters *p);
45 bool save_image(const vm_char *file);
47 PRIMITIVE(save_image);
48 PRIMITIVE(save_image_and_exit);