File:  [gforth] / gforth / arch / misc / mach.fs
Revision 1.11: download - view: text, annotated - select for diffs
Sun Mar 9 15:17:00 2003 UTC (18 years, 6 months ago) by anton
Branches: MAIN
CVS tags: v0-6-1, v0-6-0, HEAD
updated copyright years

\ Parameter for target systems                         06oct92py

\ Copyright (C) 1995,2003 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., 59 Temple Place, Suite 330, Boston, MA 02111, USA.

    2 Constant cell
    1 Constant cell<<
    4 Constant cell>bit
    8 Constant bits/char
    8 Constant float
    2 Constant /maxalign
 true Constant bigendian
( true=big, false=little )

\ feature list

false Constant NIL  \ relocating

: prims-include  ." Include primitives" cr s" ~+/arch/misc/prim.fs" included ;
: asm-include    ." Include assembler" cr s" ~+/arch/misc/asm.fs" included ;
: >boot
    hex
    S" data-stack-top SP' 2* ! return-stack-top RP' 2* ! ' boot >body IP' 2* !" 
    evaluate decimal ;

>ENVIRON

false DefaultValue file		\ controls the presence of the
				\ file access wordset
false DefaultValue OS		\ flag to indicate a operating system

false DefaultValue prims		\ true: primitives are c-code

false DefaultValue floating		\ floating point wordset is present

false DefaultValue glocals		\ gforth locals are present
				\ will be loaded
false DefaultValue dcomps		\ double number comparisons

false DefaultValue hash		\ hashing primitives are loaded/present

false DefaultValue xconds		\ used together with glocals,
				\ special conditionals supporting gforths'
				\ local variables
false DefaultValue header		\ save a header information

true DefaultValue ec
false DefaultValue crlf
false SetValue new-input
false SetValue peephole
true SetValue abranch       \ enables absolute branches

false DefaultValue rom

cell 2 = [IF] 32 [ELSE] 256 [THEN] KB DefaultValue kernel-size

16 KB		DefaultValue stack-size
15 KB 512 +	DefaultValue fstack-size
15 KB		DefaultValue rstack-size
14 KB 512 +	DefaultValue lstack-size

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>