--- gforth/arch/generic/machine.h 2003/01/03 17:10:10 1.19 +++ gforth/arch/generic/machine.h 2007/03/31 12:58:07 1.26 @@ -2,7 +2,7 @@ This is a generic file for 32-bit machines with IEEE FP arithmetic (no VMS). It only supports indirect threading. - Copyright (C) 1995,1998,1999 Free Software Foundation, Inc. + Copyright (C) 1995,1998,1999,2003 Free Software Foundation, Inc. This file is part of Gforth. @@ -40,9 +40,13 @@ #define USE_FTOS #endif #endif -/* I don't do the same for the data stack (i.e. USE_TOS), since this - loses on processors with few registers. USE_TOS might be defined in - the processor-specific files */ + +#ifndef USE_TOS +#ifndef USE_NO_TOS +/* keep top of data stack in register. Usually a good idea unless registers are very scarce */ +#define USE_TOS +#endif +#endif #ifndef INDIRECT_THREADED #ifndef DIRECT_THREADED @@ -76,17 +80,35 @@ typedef void *Label; /* feature defines, these setting should be identical to the ones in machpc.fs */ -#define HAS_DCOMPS +#ifndef STANDALONE +#warning hosted system #define HAS_FILE #define HAS_FLOATING -#define HAS_GLOCALS -#define HAS_HASH #define HAS_OS -#define HAS_XCONDS -#define HAS_STANDARDTHREADING #define HAS_DEBUG +#define HAS_GLOCALS +#define HAS_HASH #ifndef HAS_PEEPHOLE #define HAS_PEEPHOLE #endif +#else +#warning standalone system +#undef HAS_FILE +#undef HAS_FLOATING +#undef HAS_OS +#undef HAS_DEBUG +#undef HAS_GLOCALS +#undef HAS_HASH +#define HAS_F83HEADERSTRING +#ifndef PUTC +# define PUTC(x) putc(x, stdout) +#endif +#ifndef TYPE +# define TYPE(x, l) fwrite(x, l, 1, stdout) +#endif +#endif +#define HAS_DCOMPS +#define HAS_XCONDS +#define HAS_STANDARDTHREADING #define RELINFOBITS 8