| #ifndef INCLUDE_IMAGE |
#ifndef INCLUDE_IMAGE |
| static int clear_dictionary=0; |
static int clear_dictionary=0; |
| static size_t pagesize=0; |
static size_t pagesize=0; |
| |
char *progname; |
| |
#else |
| |
char *progname = "gforth"; |
| |
int optind = 1; |
| #endif |
#endif |
| static int debug=0; |
static int debug=0; |
| char *progname; |
|
| |
|
| /* image file format: |
/* image file format: |
| * "#! binary-path -i\n" (e.g., "#! /usr/local/bin/gforth-0.4.0 -i\n") |
* "#! binary-path -i\n" (e.g., "#! /usr/local/bin/gforth-0.4.0 -i\n") |
| image[i]+=(Cell)image; |
image[i]+=(Cell)image; |
| } |
} |
| } |
} |
| |
((ImageHeader*)(image))->base = image; |
| } |
} |
| |
|
| UCell checksum(Label symbols[]) |
UCell checksum(Label symbols[]) |
| |
|
| #ifdef INCLUDE_IMAGE |
#ifdef INCLUDE_IMAGE |
| set_stack_sizes((ImageHeader *)image); |
set_stack_sizes((ImageHeader *)image); |
| relocate(image, reloc_bits, ((ImageHeader*)&image)->image_size, (Label*)engine(0, 0, 0, 0, 0)); |
if(((ImageHeader *)image)->base != image) |
| |
relocate(image, reloc_bits, ((ImageHeader *)image)->image_size, |
| |
(Label*)engine(0, 0, 0, 0, 0)); |
| alloc_stacks((ImageHeader *)image); |
alloc_stacks((ImageHeader *)image); |
| #else |
#else |
| image_file = open_image_file(imagename, path); |
image_file = open_image_file(imagename, path); |