]>
code.delx.au - gnu-emacs/blob - src/m/tekxd88.h
1 /* m- file for Tektronix XD88 running UTekV 3.2e to be used with s-usg5-3.h,
2 contributed by Kaveh Ghazi (ghazi@caip.rutgers.edu) 1/15/93.
3 You probably need to use gnu make (version 3.63 or higher.)
4 Copyright (C) 1993 Free Software Foundation, Inc.
6 This file is part of GNU Emacs.
8 GNU Emacs is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY. No author or distributor
10 accepts responsibility to anyone for the consequences of using it
11 or for whether it serves any particular purpose or works at all,
12 unless he says so in writing. Refer to the GNU Emacs General Public
13 License for full details.
15 Everyone is granted permission to copy, modify and redistribute
16 GNU Emacs, but only under the conditions described in the
17 GNU Emacs General Public License. A copy of this license is
18 supposed to have been given to you along with GNU Emacs so you
19 can know your rights and responsibilities. It should be in a
20 file named COPYING. Among other things, the copyright notice
21 and this notice must be preserved on all copies. */
23 /* The following three symbols give information on
24 the size of various data types. */
25 #define SHORTBITS 16 /* Number of bits in a short */
26 #define INTBITS 32 /* Number of bits in an int */
27 #define LONGBITS 32 /* Number of bits in a long */
29 /* Define BIG_ENDIAN iff lowest-numbered byte in a word
30 is the most significant byte. */
33 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
34 * group of arguments and treat it as an array of the arguments. */
37 /* Define WORD_MACHINE if addresses and such have
38 * to be corrected before they can be used as byte counts. */
39 /* #define WORD_MACHINE */
41 /* Now define a symbol for the cpu type, if your compiler
42 does not define it automatically:
43 Ones defined so far include vax, m68000, ns16000, pyramid,
44 orion, tahoe, APOLLO and many others */
45 #ifndef m88000 /* Some 88k C compilers already define this */
49 /* Define how to take a char and sign-extend into an int.
50 On machines where char is signed, this is a no-op. */
51 #define SIGN_EXTEND_CHAR(c) (c)
53 /* Now define a symbol for the cpu type, if your compiler
54 does not define it automatically. */
57 /* Use type int rather than a union, to represent Lisp_Object */
58 /* This is desirable for most machines. */
61 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
62 the 24-bit bit field into an int. In other words, if bit fields
65 If you use NO_UNION_TYPE, this flag does not matter. */
66 /* #define EXPLICIT_SIGN_EXTEND */
68 /* Data type of load average, as read out of kmem. */
69 /* No load average on XD88 machines. */
70 /* #define LOAD_AVE_TYPE double */
72 /* Convert that into an integer that is 100 for a load average of 1.0 */
73 /* #define LOAD_AVE_CVT(x) ((int) ((x) * 100.0)) */
75 /* Define CANNOT_DUMP on machines where unexec does not work.
76 Then the function dump-emacs will not be defined
77 and temacs will do (load "loadup") automatically unless told otherwise. */
78 #define CANNOT_DUMP /* oh well, maybe someday ... */
80 /* Define VIRT_ADDR_VARIES if the virtual addresses of
81 pure and impure space as loaded can vary, and even their
82 relative order cannot be relied on.
84 Otherwise Emacs assumes that text space precedes data space,
86 /* #define VIRT_ADDR_VARIES */
88 /* Define NO_REMAP if memory segmentation makes it not work well
89 to change the boundary between the text section and data section
90 when Emacs is dumped. If you define this, the preloaded Lisp
91 code will not be sharable; but that's better than failing completely. */
94 /* Define C_ALLOCA if this machine does not support a true alloca
95 and the one written in C should be used instead.
96 Define HAVE_ALLOCA to say that the system provides a properly
97 working alloca function and it should be used.
98 Define neither one if an assembler-language alloca
99 in the file alloca.s should be used. */
101 # define alloca __builtin_alloca /* Use the gcc builtin alloca() ... */
102 # define HAVE_ALLOCA /* ... and be sure that no other ones are tried out. */
104 # define C_OPTIMIZE_SWITCH -O2
105 #else /* not __GNUC__ */
107 # define C_ALLOCA /* Use the alloca() supplied in alloca.c. */
108 # define STACK_DIRECTION -1 /* The stack grows towards lower addresses. */
109 # define C_OPTIMIZE_SWITCH -O
110 #endif /* __GNUC__ */
112 /*#define C_DEBUG_SWITCH C_OPTIMIZE_SWITCH*/ /* Uncomment this to optimize */
114 /* XD88 SysV has PTYs. Not all usg3-5 systems do, so this is defined here. */
116 #define SYSV_PTYS /* Requires <termios.h> */
118 /* we have job control */
119 #undef NOMULTIPLEJOBS
122 * sockets are available
127 * we have Berkeley style <sys/time.h>
131 /* XD88 has select(). */
133 #define BROKEN_FIONREAD /* is this needed ? */
136 * don't use utimes, we ain't got one - use utime() instead
142 /* We need HAVE_TCATTR to prevent Ctrl-Z from suspending Emacs before
143 suspend-emacs has been called. */
144 /*#define HAVE_TCATTR*/
145 /* TCATTR gives bogus baud rates. Use the following for OSPEED instead. */
146 /*#define OSPEED(str) (cfgetospeed(&(str)))*/
150 #define BSTRING /* its in libc but not declared in any <*.h> file. */
155 #ifdef ghs /* Stands for "Green Hills Software", defined in /bin/cc */
156 /* Only required for use with the Green Hills compiler:
157 -X18 Do not allocate programmer-defined local variables to a
158 register unless they are declared register. (From building
159 perl-4.036 Green Hills hints. Might be needed for setjmp.)
161 #define C_SWITCH_MACHINE -X18
162 /* We need /lib/default.ld so the bundled ld can read its link directives. */
163 #define LD_SWITCH_SYSTEM /lib/default.ld
166 /* XD88 does not have the random() and srandom() calls in the base system,
167 but they exist in libX11.a. So, if you are building with X11 then you
168 will need to define HAVE_RANDOM. */
169 #ifdef HAVE_X_WINDOWS
171 #undef LIB_X11_LIB /* don't use the shared library default from usg5-3.h */
173 #endif /* HAVE_X_WINDOWS */
175 /*#define SYSTEM_MALLOC*/
178 #define UTEKV /* system specific symbol */
181 /* stuff to hopefully someday get dumping working ... */
182 /*#define SECTION_ALIGNMENT 0x1ff*/
183 /*#define SEGMENT_MASK 0xff*/
184 /*#define A_TEXT_OFFSET(HDR) sizeof(HDR)*/