|
|
1.1 root 1: /* m- file for WICAT machines.
2: Copyright (C) 1986 Free Software Foundation, Inc.
3:
4: This file is part of GNU Emacs.
5:
6: GNU Emacs is distributed in the hope that it will be useful,
7: but WITHOUT ANY WARRANTY. No author or distributor
8: accepts responsibility to anyone for the consequences of using it
9: or for whether it serves any particular purpose or works at all,
10: unless he says so in writing. Refer to the GNU Emacs General Public
11: License for full details.
12:
13: Everyone is granted permission to copy, modify and redistribute
14: GNU Emacs, but only under the conditions described in the
15: GNU Emacs General Public License. A copy of this license is
16: supposed to have been given to you along with GNU Emacs so you
17: can know your rights and responsibilities. It should be in a
18: file named COPYING. Among other things, the copyright notice
19: and this notice must be preserved on all copies. */
20:
21:
22: /* The following three symbols give information on
23: the size of various data types. */
24:
25: #define SHORTBITS 16 /* Number of bits in a short */
26:
27: #define INTBITS 32 /* Number of bits in an int */
28:
29: #define LONGBITS 32 /* Number of bits in a long */
30:
31: /* Define BIG_ENDIAN iff lowest-numbered byte in a word
32: is the most significant byte. */
33:
34: #define BIG_ENDIAN
35:
36: /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
37: * group of arguments and treat it as an array of the arguments. */
38:
39: #undef NO_ARG_ARRAY
40:
41: /* Define WORD_MACHINE if addresses and such have
42: * to be corrected before they can be used as byte counts. */
43:
44: #undef WORD_MACHINE
45:
46: /* Define how to take a char and sign-extend into an int.
47: On machines where char is signed, this is a no-op. */
48:
49: #define SIGN_EXTEND_CHAR(c) (c)
50:
51: /* Now define a symbol for the cpu type, if your compiler
52: does not define it automatically:
53: vax, m68000, ns16000 are the ones defined so far. */
54:
55: #ifndef m68000
56: #define m68000
57: #endif
58:
59: /* This flag is used only in alloca.s. */
60: #define WICAT
61:
62: /* Use type int rather than a union, to represent Lisp_Object */
63:
64: #define NO_UNION_TYPE
65:
66: /* XINT must explicitly sign-extend */
67:
68: #define EXPLICIT_SIGN_EXTEND
69:
70: /* Data type of load average, as read out of kmem. */
71:
72: #undef LOAD_AVE_TYPE
73:
74: /* Convert that into an integer that is 100 for a load average of 1.0 */
75:
76: #undef LOAD_AVE_CVT
77:
78: /* Define CANNOT_DUMP on machines where unexec does not work.
79: Then the function dump-emacs will not be defined
80: and temacs will do (load "loadup") automatically unless told otherwise. */
81:
82: #undef CANNOT_DUMP
83:
84: /* Define VIRT_ADDR_VARIES if the virtual addresses of
85: pure and impure space as loaded can vary, and even their
86: relative order cannot be relied on.
87:
88: Otherwise Emacs assumes that text space precedes data space,
89: numerically. */
90:
91: #undef VIRT_ADDR_VARIES
92:
93: /* Define C_ALLOCA if this machine does not support a true alloca
94: and the one written in C should be used instead.
95: Define HAVE_ALLOCA to say that the system provides a properly
96: working alloca function and it should be used.
97: Define neither one if an assembler-language alloca
98: in the file alloca.s should be used. */
99:
100: /* For the Wicat C compiler version 4.2, this can be removed
101: and the alloca in alloca.s used. */
102: #define C_ALLOCA
103: #define STACK_DIRECTION -1 /* grows towards lower addresses on WICAT */
104:
105: /* Define NO_REMAP if memory segmentation makes it not work well
106: to change the boundary between the text section and data section
107: when Emacs is dumped. If you define this, the preloaded Lisp
108: code will not be sharable; but that's better than failing completely. */
109:
110: #undef NO_REMAP
111:
112: /* For WICAT, define TAHOE_REGISTER_BUG if you have a pre-4.2 C compiler */
113:
114: #define TAHOE_REGISTER_BUG
115:
116: /* pagesize definition */
117:
118: #define EXEC_PAGESIZE 0x1000
119:
120: /* Delete this for WICAT sys V releases before 2.0. */
121:
122: #define LIB_STANDARD -lc-nofp
123:
124: /* Special magic number */
125:
126: #define EXEC_MAGIC MC68ROMAGIC
127:
128: /* Special switches to give to ld. */
129:
130: #define LD_SWITCH_MACHINE -e __start -N
131:
132: /* Sigh...cannot define this for WICAT cuz 0 length memcpy blows chunks */
133:
134: #undef BSTRING
135:
136: #ifdef BSTRING
137: #undef bcopy
138: #undef bzero
139: #undef bcmp
140:
141: #define bcopy(a,b,s) memcpy(b,a,s)
142: #define bzero(a,s) memset(a,0,s)
143: #define bcmp memcmp
144: #endif
145:
146: /*
147: * Define optimflags if you want to optimize.
148: * - Set to null string for pre-4.2 C compiler
149: * - Set to "-O -Wopt,-O-f" for 4.2
150: */
151:
152: #define C_OPTIMIZE_SWITCH /* -O -Wopt,-O-f */
153:
154: /* For WICAT version supporting PTYs and select (currently internal only) */
155:
156: #ifdef HAVE_PTYS
157: #undef FIRST_PTY_LETTER
158: #define FIRST_PTY_LETTER 'q'
159: #endif
160:
161: /* there is a select() in libcurses.a that causes a conflict so use termlib */
162: #ifdef HAVE_SELECT
163: #undef TERMINFO
164: #define LIBS_TERMCAP select.o -ltermlib
165: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.