]> gitweb.factorcode.org Git - factor.git/blob - vm/image.hpp
Merge branch 'master' of git://factorcode.org/git/factor
[factor.git] / vm / image.hpp
1 namespace factor
2 {
3
4 static const cell image_magic = 0x0f0e0d0c;
5 static const cell image_version = 4;
6
7 struct image_header {
8         cell magic;
9         cell version;
10         /* base address of data heap when image was saved */
11         cell data_relocation_base;
12         /* size of heap */
13         cell data_size;
14         /* base address of code heap when image was saved */
15         cell code_relocation_base;
16         /* size of code heap */
17         cell code_size;
18         /* tagged pointer to t singleton */
19         cell true_object;
20         /* tagged pointer to bignum 0 */
21         cell bignum_zero;
22         /* tagged pointer to bignum 1 */
23         cell bignum_pos_one;
24         /* tagged pointer to bignum -1 */
25         cell bignum_neg_one;
26         /* Initial user environment */
27         cell special_objects[special_object_count];
28 };
29
30 struct vm_parameters {
31         const vm_char *image_path;
32         const vm_char *executable_path;
33         cell ds_size, rs_size;
34         cell young_size, aging_size, tenured_size;
35         cell code_size;
36         bool fep;
37         bool console;
38         bool signals;
39         cell max_pic_size;
40         cell callback_size;
41 };
42
43 }