Mercurial > emacs
comparison src/m/mips-siemens.h @ 11113:da5800b0c012
(UNEXEC): Override the definition.
(LIBS_DEBUG, ORDINARY_LINK): Add #undefs.
Total rewrite.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 24 Mar 1995 05:18:06 +0000 |
parents | aeb6944692b2 |
children | 2cd15d90fec6 |
comparison
equal
deleted
inserted
replaced
11112:20ff2eaa8bf8 | 11113:da5800b0c012 |
---|---|
1 #include "pyramid.h" | 1 /* m- file for Mips machines. |
2 Copyright (C) 1987, 1992, 1993, 1995 Free Software Foundation, Inc. | |
3 | |
4 This file contains some changes for our SVR4 based SINIX-Mips 5.4. | |
5 I hope this is helpful to port the emacs to our RM?00 series and | |
6 maybe to the DC/OSx (Mips-based) machines of Pyramid Inc. | |
7 (Marco.Walther@mch.sni.de) | |
8 | |
9 This file is part of GNU Emacs. | |
10 | |
11 GNU Emacs is free software; you can redistribute it and/or modify | |
12 it under the terms of the GNU General Public License as published by | |
13 the Free Software Foundation; either version 2, or (at your option) | |
14 any later version. | |
15 | |
16 GNU Emacs is distributed in the hope that it will be useful, | |
17 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 GNU General Public License for more details. | |
20 | |
21 You should have received a copy of the GNU General Public License | |
22 along with GNU Emacs; see the file COPYING. If not, write to | |
23 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
2 | 24 |
3 | 25 |
4 /* Don't use the ordinary -g for debugging in cc */ | 26 /* The following line tells the configuration script what sort of |
27 operating system this machine is likely to run. | |
28 USUAL-OPSYS="note" | |
5 | 29 |
6 #undef C_DEBUG_SWITCH | 30 NOTE-START |
7 #define C_DEBUG_SWITCH -g | 31 Use m-mips4.h for RISCOS version 4; use s-bsd4-3.h with the BSD world. |
32 Note that the proper m- file for the Decstation is m-pmax.h. | |
33 This is the m- file for SNI RM*00 machines. Use s- sinix5-4.h file! | |
34 With this the file mips-siemens.h is obsolete. | |
35 NOTE-END */ | |
8 | 36 |
9 /* This system uses a slightly nonstandard variant of elf format. */ | 37 /* The following three symbols give information on |
10 #undef UNEXEC | 38 the size of various data types. */ |
11 #define UNEXEC unexelf.o | |
12 #define ELF_BSS_SECTION_NAME ".sbss" | |
13 | 39 |
14 #define BSTRING | 40 #define SHORTBITS 16 /* Number of bits in a short */ |
41 | |
42 #define INTBITS 32 /* Number of bits in an int */ | |
43 | |
44 #define LONGBITS 32 /* Number of bits in a long */ | |
45 | |
46 /* Define BIG_ENDIAN iff lowest-numbered byte in a word | |
47 is the most significant byte. */ | |
48 | |
49 #define BIG_ENDIAN | |
50 | |
51 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a | |
52 * group of arguments and treat it as an array of the arguments. */ | |
15 | 53 |
16 #define NO_ARG_ARRAY | 54 #define NO_ARG_ARRAY |
17 | 55 |
18 #undef BROKEN_FIONREAD | 56 /* Define WORD_MACHINE if addresses and such have |
57 * to be corrected before they can be used as byte counts. */ | |
19 | 58 |
59 #undef WORD_MACHINE | |
60 | |
61 /* Define how to take a char and sign-extend into an int. | |
62 On machines where char is signed, this is a no-op. */ | |
63 | |
64 #define SIGN_EXTEND_CHAR(c) ((signed char)(c)) | |
65 | |
66 /* Now define a symbol for the cpu type, if your compiler | |
67 does not define it automatically: | |
68 Ones defined so far include vax, m68000, ns16000, pyramid, | |
69 orion, tahoe, APOLLO and many others */ | |
70 #ifndef mips | |
71 # define mips | |
72 #endif | |
73 | |
74 /* Use type int rather than a union, to represent Lisp_Object */ | |
75 /* This is desirable for most machines. */ | |
76 | |
77 #define NO_UNION_TYPE | |
78 | |
79 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend | |
80 the 24-bit bit field into an int. In other words, if bit fields | |
81 are always unsigned. | |
82 | |
83 If you use NO_UNION_TYPE, this flag does not matter. */ | |
84 | |
85 #define EXPLICIT_SIGN_EXTEND | |
86 | |
87 /* Data type of load average, as read out of kmem. */ | |
88 | |
89 #define LOAD_AVE_TYPE long | |
90 | |
91 /* Convert that into an integer that is 100 for a load average of 1.0 */ | |
92 | |
93 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / 256.0) | |
94 | |
95 /* CDC EP/IX 1.4.3 uses /unix */ | |
96 | |
97 #undef KERNEL_FILE | |
98 #define KERNEL_FILE "/unix" | |
99 | |
100 /* Define CANNOT_DUMP on machines where unexec does not work. | |
101 Then the function dump-emacs will not be defined | |
102 and temacs will do (load "loadup") automatically unless told otherwise. */ | |
103 | |
104 #undef CANNOT_DUMP | |
105 | |
106 /* Define VIRT_ADDR_VARIES if the virtual addresses of | |
107 pure and impure space as loaded can vary, and even their | |
108 relative order cannot be relied on. | |
109 | |
110 Otherwise Emacs assumes that text space precedes data space, | |
111 numerically. */ | |
112 | |
113 /* #define VIRT_ADDR_VARIES */ | |
114 | |
115 /* Define C_ALLOCA if this machine does not support a true alloca | |
116 and the one written in C should be used instead. | |
117 Define HAVE_ALLOCA to say that the system provides a properly | |
118 working alloca function and it should be used. | |
119 Define neither one if an assembler-language alloca | |
120 in the file alloca.s should be used. */ | |
121 | |
122 #ifdef __GNUC__ | |
123 #define HAVE_ALLOCA | |
124 #else | |
20 #define C_ALLOCA | 125 #define C_ALLOCA |
126 #endif | |
21 | 127 |
128 /* Define NO_REMAP if memory segmentation makes it not work well | |
129 to change the boundary between the text section and data section | |
130 when Emacs is dumped. If you define this, the preloaded Lisp | |
131 code will not be sharable; but that's better than failing completely. */ | |
132 | |
133 #define NO_REMAP | |
134 | |
135 /* Describe layout of the address space in an executing process. */ | |
136 /* MARCO ??? | |
137 */ | |
138 #define TEXT_START 0x400000 | |
139 /* | |
140 #define DATA_START 0x10000000 | |
141 #define DATA_SEG_BITS 0x10000000 | |
142 */ | |
143 #ifdef UNEXEC | |
144 #undef UNEXEC | |
145 #endif | |
146 #define UNEXEC unexelfsni.o | |
147 | |
148 #undef ORDINARY_LINK | |
149 | |
150 #undef LIBS_DEBUG | |
151 | |
152 /* Alter some of the options used when linking. */ | |
153 | |
154 #define LIBS_MACHINE -lmld | |
155 #define START_FILES pre-crt0.o /usr/ccs/lib/crt1.o /usr/ccs/lib/crti.o /usr/ccs/lib/values-Xt.o | |
156 | |
157 #ifdef LIB_STANDARD | |
158 #undef LIB_STANDARD | |
159 #endif | |
160 #define LIB_STANDARD -lc /usr/ccs/lib/crtn.o | |
161 | |
162 #ifdef __GNUC__ | |
163 #define C_DEBUG_SWITCH | |
164 #define C_OPTIMIZE_SWITCH -O | |
165 #define LD_SWITCH_MACHINE | |
166 #else | |
167 #define C_DEBUG_SWITCH -DSYSV | |
168 #define C_OPTIMIZE_SWITCH -DSYSV | |
169 #define LD_SWITCH_MACHINE | |
170 #endif | |
171 | |
172 #if defined(HAVE_X_WINDOWS) && defined(HAVE_X11) | |
173 #define HAVE_VFORK /* Graciously provided by libX.a */ | |
174 #endif | |
175 | |
176 | |
177 /* The standard definitions of these macros would work ok, | |
178 but these are faster because the constants are short. */ | |
179 | |
180 #define XUINT(a) (((unsigned)(a) << (INTBITS-VALBITS)) >> (INTBITS-VALBITS)) | |
181 | |
182 #define XSET(var, type, ptr) \ | |
183 ((var) = \ | |
184 ((int)(type) << VALBITS) \ | |
185 + (((unsigned) (ptr) << (INTBITS-VALBITS)) >> (INTBITS-VALBITS))) | |
186 | |
187 #define XSETINT(a, b) XSET(a, XTYPE(a), b) | |
188 #define XSETUINT(a, b) XSET(a, XTYPE(a), b) | |
189 #define XSETPNTR(a, b) XSET(a, XTYPE(a), b) | |
190 | |
191 #define XUNMARK(a) \ | |
192 ((a) = \ | |
193 (((unsigned)(a) << (INTBITS-GCTYPEBITS-VALBITS)) \ | |
194 >> (INTBITS-GCTYPEBITS-VALBITS))) | |
195 |