Annotation of gforth/kernel-ec/main.fs, revision 1.2
1.1 pazsan 1: \ MAIN.FS Kernel main load file 20may93jaw
2:
1.2 ! anton 3: \ Copyright (C) 1995,1996,1997,1998,2000,2003,2006,2007,2008,2011,2012 Free Software Foundation, Inc.
1.1 pazsan 4:
5: \ This file is part of Gforth.
6:
7: \ Gforth is free software; you can redistribute it and/or
8: \ modify it under the terms of the GNU General Public License
9: \ as published by the Free Software Foundation, either version 3
10: \ of the License, or (at your option) any later version.
11:
12: \ This program is distributed in the hope that it will be useful,
13: \ but WITHOUT ANY WARRANTY; without even the implied warranty of
14: \ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15: \ GNU General Public License for more details.
16:
17: \ You should have received a copy of the GNU General Public License
18: \ along with this program. If not, see http://www.gnu.org/licenses/.
19:
20: Create mach-file here over 1+ allot place
21:
22: 0 [IF]
23: \ debugging: produce a relocation and a symbol table
24: s" rel-table" r/w create-file throw
25: Constant fd-relocation-table
26:
27: \ debuggging: produce a symbol table
28: s" sym-table" r/w create-file throw
29: Constant fd-symbol-table
30: [THEN]
31:
32:
33: parse-name vocabulary find-name 0= [IF]
34: \ if search order stuff is missing assume we are compiling on a gforth
35: \ system and include it.
36: \ We want the files taken from our current gforth installation
37: \ so we don't include relatively to this file
38: require ./../startup.fs
39: [THEN]
40:
41: \ include etags.fs
42:
43: include ./../cross.fs \ cross-compiler
44:
45: decimal
46:
47: has? rom 0= [IF]
48: has? kernel-start has? kernel-size makekernel
49: [THEN]
50: \ create image-header
51:
52: doc-off
53: has? prims [IF]
54: include ../kernel/aliases.fs \ primitive aliases
55: [ELSE]
56: prims-include
57: undef-words
58: include ../kernel/prim.fs
59: all-words
60: [THEN]
61: doc-on
62:
63: has? header [IF]
64: 1802 <> [IF] .s cr .( header start address expected!) cr uffz [THEN]
65: AConstant image-header
66: : forthstart image-header @ ;
67: [THEN]
68:
69: \ 0 AConstant forthstart
70:
71: \ include ./vars.fs \ variables and other stuff
72: \ include kernel/version.fs \ is in $(build)/kernel
73: include ./kernel.fs \ kernel
74: \ include ./errore.fs
75: include ./doers.fs
76:
77: has? compiler [IF]
78: include ./cond.fs \ IF and co.
79: \ these two games can be added to provide complex examples for the 4stack
80: \ and misc simulators (see arch/4stack/README and arch/misc/README).
81: has? games [IF]
82: include arch/misc/tt.fs
83: \ disabled, as cross-compilation support seems broken currently:
84: include arch/misc/sokoban.fs
85: [THEN]
86: [THEN]
87: include ./quotes.fs
88: include ./tools.fs \ load tools ( .s dump )
89: include ./getdoers.fs
90:
91: \ Setup 13feb93py
92:
93: include ./pass.fs \ pass pointers from cross to target
94:
95: >boot
96:
97: .unresolved \ how did we do?
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>