Update FSF's ddress in preamble
[bpt/emacs.git] / src / m / acorn.h
CommitLineData
f3cc1007
RS
1/* Machine description file for Acorn RISCiX machines.
2 Copyright (C) 1994 Free Software Foundation, Inc.
3
4This file is part of GNU Emacs.
5
6GNU Emacs is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11GNU Emacs is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GNU Emacs; see the file COPYING. If not, write to
18the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20
21
74d3f806 22/* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
f3cc1007
RS
23 is the most significant byte. */
24
74d3f806 25#undef WORDS_BIG_ENDIAN
f3cc1007
RS
26
27/* Define NO_ARG_ARRAY if you cannot take the address of the first of a
28 * group of arguments and treat it as an array of the arguments. We can't
29 * do this on the arm with gcc, since the first 4 args are in registers. */
30
31#ifdef __GNUC__
32#define NO_ARG_ARRAY
33#else
34#undef NO_ARG_ARRAY
35#endif
36
37/* Define WORD_MACHINE if addresses and such have
38 * to be corrected before they can be used as byte counts. */
39
40#undef WORD_MACHINE
41
42/* Define how to take a char and sign-extend into an int.
43 On machines where char is signed, this is a no-op. */
44
45/* ARM note - The RISCiX Norcroft C Compiler has ALL
46 non-32-bit types as unsigned */
47
48#define SIGN_EXTEND_CHAR(c) (((int)(c) << 24) >> 24)
49
50/* Now define a symbol for the cpu type, if your compiler
51 does not define it automatically:
52 Ones defined so far include vax, m68000, ns16000, pyramid,
53 orion, tahoe, APOLLO and many others */
54
55/* ARM note - this is done by the Norcroft compiler - symbol is `__arm' */
56
57/* Use type int rather than a union, to represent Lisp_Object */
58/* This is desirable for most machines. */
59
60#define NO_UNION_TYPE
61
62/* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
63 the 24-bit bit field into an int. In other words, if bit fields
64 are always unsigned.
65
66 If you use NO_UNION_TYPE, this flag does not matter. */
67
68#define EXPLICIT_SIGN_EXTEND
69
70#ifdef LDAV_SYMBOL
71#undef LDAV_SYMBOL
72#endif
73
74#define LDAV_SYMBOL "_iavenrun"
75
76
77/* Data type of load average, as read out of kmem. */
78
79#define LOAD_AVE_TYPE long
80
81/* Convert that into an integer that is 100 for a load average of 1.0 */
82
83/*
84 * Scale factor for scaled integers used to count
85 * %cpu time and load averages.
86 */
87
88/* FSHIFT and FSCALE are defined in param.h, but are required by
89 LOAD_AVE_CVT, so they need to be defined here. */
90
91#ifndef FSHIFT
92#define FSHIFT 8 /* bits to right of fixed binary point */
93#endif
94
95#ifndef FSCALE
96#define FSCALE (1<<FSHIFT)
97#endif
98
99#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
100
101/* Define CANNOT_DUMP on machines where unexec does not work.
102 Then the function dump-emacs will not be defined
103 and temacs will do (load "loadup") automatically unless told otherwise. */
104
105#undef CANNOT_DUMP
106
107/* Define VIRT_ADDR_VARIES if the virtual addresses of
108 pure and impure space as loaded can vary, and even their
109 relative order cannot be relied on.
110
111 Otherwise Emacs assumes that text space precedes data space,
112 numerically. */
113
114#undef VIRT_ADDR_VARIES
115
116/* This prevents Emacs dumping an unsqueezed binary with the
117 SQUEEZE bit set in the magic number. */
118
119#define ADJUST_EXEC_HEADER {hdr.a_magic &= ~MF_SQUEEZED;}
120
121/* Define C_ALLOCA if this machine does not support a true alloca
122 and the one written in C should be used instead.
123 Define HAVE_ALLOCA to say that the system provides a properly
124 working alloca function and it should be used.
125 Define neither one if an assembler-language alloca
126 in the file alloca.s should be used. */
127
128#ifdef __GNUC__
129
130/* Use builtin alloca. Also be sure that no other ones are tried out. */
131#define alloca __builtin_alloca
132#define HAVE_ALLOCA
133
134/* Keep gcc/RISCiX happy - it uses __gccmain where other versions of
135 gcc use __main, because of a library routine name clash. */
136#define __main __gccmain
137
138#else
139#define C_ALLOCA
140#undef HAVE_ALLOCA
141#endif /* __GNUC__ */
142
143/* Define NO_REMAP if memory segmentation makes it not work well
144 to change the boundary between the text section and data section
145 when Emacs is dumped. If you define this, the preloaded Lisp
146 code will not be sharable; but that's better than failing completely. */
147
148#define NO_REMAP
149
150
151#ifndef NOT_C_CODE
152#define TEXT_START 0x8000
153#define DATA_END &_edata
154extern int _edata;
155#define etext _etext
156#endif
157
158/* Avoid debugging library */
159#define LIBS_DEBUG
160
161/* Avoid sharing libc */
162#define LIB_STANDARD -lc_n
163
164/* Avoid sharing libX11 */
165#define LIB_X11_LIB -lX11_n
166
167/* All kinds of symbol definitions, so as to avoid multiply defined symbol
168 errors from the RISCiX linker. */
169
170#ifdef __GNUC__
171#define C_DEBUG_SWITCH
172
173#define C_OPTIMIZE_SWITCH -O1 -fomit-frame-pointer -w -g -Dgetopt=gnu_getopt -Dopterr=gnu_opterr -Doptind=gnu_optind -Doptarg=gnu_optarg -Dcfree=gnu_cfree -D___type=
174
175#else
176#define C_DEBUG_SWITCH -O -w -g -Dgetopt=gnu_getopt -Dopterr=gnu_opterr -Doptind=gnu_optind -Doptarg=gnu_optarg -Dcfree=gnu_cfree
177#endif
178
179/* Turn this on to avoid the emacs malloc and use standard one */
180
181#undef SYSTEM_MALLOC
182
183/* Use <dirent.h>. */
184#define SYSV_SYSTEM_DIR
185
f3cc1007
RS
186/* For the portable alloca */
187#define STACK_DIRECTION -1
188
189#ifdef NO_REMAP
190/* CRT0_O is defined in s/riscix1-1.h or s/riscix1-2.h, as appropriate. */
191#define START_FILES pre-crt0.o CRT0_O
192#else
193Cannot
194do
195this
196yet
197#endif