File:
[gforth] /
gforth /
arch /
generic /
machine.h
Revision
1.6:
download - view:
text,
annotated -
select for diffs
Sun Dec 13 23:30:00 1998 UTC (24 years, 3 months ago) by
pazsan
Branches:
MAIN
CVS tags:
v0-4-0,
HEAD
Added some documentation (files stup, blocks stub, Mini-OOF implementation)
Added Benchres for my machine
made DOS and Win32 compile and run
New gforthmi.bat script for DOS - needs a temporary file for the commands
instead of the -e option.
Added select.o again for DOS (DJGPP's select is broken wrt timing)
Improved select.c
Bug with DOS: engine-ditc doesn't compile with optimization on. Maybe I need
to get a new GCC version for DOS?
1: /*
2: This is a generic file for 32-bit machines with IEEE FP arithmetic (no VMS).
3: It only supports indirect threading.
4:
5: Copyright (C) 1995,1998 Free Software Foundation, Inc.
6:
7: This file is part of Gforth.
8:
9: Gforth is free software; you can redistribute it and/or
10: modify it under the terms of the GNU General Public License
11: as published by the Free Software Foundation; either version 2
12: of the License, or (at your option) any later version.
13:
14: This program is distributed in the hope that it will be useful,
15: but WITHOUT ANY WARRANTY; without even the implied warranty of
16: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17: GNU General Public License for more details.
18:
19: You should have received a copy of the GNU General Public License
20: along with this program; if not, write to the Free Software
21: Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22: */
23:
24: /* define SYSCALL */
25:
26: #ifndef SYSCALL
27: #define SYSCALL
28: #endif
29:
30: #ifndef SYSSIGNALS
31: #define SYSSIGNALS
32: #endif
33:
34: #ifndef USE_FTOS
35: #ifndef USE_NO_FTOS
36: /* keep top of FP stack in register. Since most processors have FP
37: registers and they are hardly used in gforth, this is usually a
38: good idea. The 88100 has no separate FP regs, but many general
39: purpose regs, so it should be ok */
40: #define USE_FTOS
41: #endif
42: #endif
43: /* I don't do the same for the data stack (i.e. USE_TOS), since this
44: loses on processors with few registers. USE_TOS might be defined in
45: the processor-specific files */
46:
47: #ifdef DIRECT_THREADED
48: /* If you want direct threading, write a .h file for your processor! */
49: /* We could put some stuff here that causes a compile error, but then
50: we could not use this file in the other machine.h files */
51: #endif
52:
53: /* Types: these types are used as Forth's internal types */
54:
55: /* define this if IEEE singles and doubles are available as C data types */
56: #define IEEE_FP
57:
58: /* the IEEE types are used only for loading and storing */
59: /* the IEEE double precision type */
60: typedef double DFloat;
61: /* the IEEE single precision type */
62: typedef float SFloat;
63:
64: typedef CELL_TYPE Cell;
65: typedef unsigned CELL_TYPE UCell;
66: typedef Cell Bool;
67: typedef unsigned char Char;
68: typedef double Float;
69: typedef Char *Address;
70:
71: #if defined(DOUBLY_INDIRECT)
72: typedef void **Label;
73: #else /* !defined(DOUBLY_INDIRECT) */
74: typedef void *Label;
75: #endif /* !defined(DOUBLY_INDIRECT) */
76:
77: /* feature defines */
78:
79: #define HAS_DCOMPS
80: #define HAS_FILE
81: #define HAS_FLOATING
82: #define HAS_GLOCALS
83: #define HAS_HASH
84: #define HAS_OS
85: #define HAS_XCONDS
86:
87: #define RELINFOBITS 8
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>