File:
[gforth] /
gforth /
Attic /
main.fs
Revision
1.24:
download - view:
text,
annotated -
select for diffs
Sat Dec 28 17:19:26 1996 UTC (27 years, 3 months ago) by
anton
Branches:
MAIN
CVS tags:
HEAD
use mmap for allocating the dictionary and the stacks on some systems
added installdirs target to Makefile.in.
Use mkinstalldirs instead of install-sh -d.
added version-stamp to avoid recompiling everything after changing Makefile.in.
mostly fixed the maiming of words containing '/' in TAGS
added options --clear-dictionary and --debug.
\ MAIN.FS Kernal main load file 20may93jaw
\ Copyright (C) 1995 Free Software Foundation, Inc.
\ This file is part of Gforth.
\ Gforth is free software; you can redistribute it and/or
\ modify it under the terms of the GNU General Public License
\ as published by the Free Software Foundation; either version 2
\ of the License, or (at your option) any later version.
\ This program is distributed in the hope that it will be useful,
\ but WITHOUT ANY WARRANTY; without even the implied warranty of
\ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\ GNU General Public License for more details.
\ You should have received a copy of the GNU General Public License
\ along with this program; if not, write to the Free Software
\ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
\ : include bl word count included ;
\ we want write include...
\ : : ( -- colon-sys ) Header [ ' : @ ] ALiteral cfa, 0 ] ;
\ : ; ( colon-sys -- ) ?struc postpone exit reveal postpone [ ; immediate
\ : :noname ( -- xt colon-sys ) here [ ' : @ ] ALiteral cfa, 0 ] ;
include search-order.fs
\ include etags.fs
include cross.fs \ include cross-compiler
decimal
cell 2 = [IF] 32 [ELSE] 256 [THEN] KB makekernel ( size )
\ create image-header
0 A, \ base address
0 , \ checksum
0 , \ image size (without tags)
, \ dict size
16 KB , \ data stack size
16 KB , \ FP stack size
16 KB , \ return stack size
16 KB , \ locals stack size
0 A, \ code entry point
0 A, \ throw entry point
16 KB , \ unused (possibly tib stack size)
0 , \ unused
0 , \ data stack base
0 , \ fp stack base
0 , \ return stack base
0 , \ locals stack base
UNLOCK ghost - drop \ ghost must exist because - would be treated as number
LOCK
0 AConstant forthstart
doc-off
include aliases.fs \ include primitive aliases
doc-on
\ include cond.fs \ conditional compile
\ include patches.fs \ include primitive patches
include vars.fs \ variables and other stuff
include add.fs \ additional things
include errore.fs
include version.fs
include kernel.fs \ load kernel
include extend.fs \ load core-extended
include tools.fs \ load tools ( .s dump )
include toolsext.fs
include special.fs
\ include words.fs
\ include wordinfo.fs
\ include see.fs \ load see
\ include search-order.fs
\ Setup 13feb93py
here normal-dp !
tudp H @ minimal udp !
decimal
here 2 cells ! \ image size
' boot >body 8 cells ! \ Entry point
UNLOCK Tlast @
LOCK
1 cells - dup forth-wordlist ! Last !
.unresolved
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>