]> code.delx.au - gnu-emacs/blob - src/m/ia64.h
* m/template.h:
[gnu-emacs] / src / m / ia64.h
1 /* machine description file for the IA-64 architecture.
2 Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
3 2008 Free Software Foundation, Inc.
4 Contributed by David Mosberger <davidm@hpl.hp.com>
5
6 This file is part of GNU Emacs.
7
8 GNU Emacs is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12
13 GNU Emacs is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
20
21 #define BITS_PER_LONG 64
22 #define BITS_PER_EMACS_INT 64
23
24 /* Define WORDS_BIG_ENDIAN if lowest-numbered byte in a word
25 is the most significant byte. */
26
27 #undef WORDS_BIG_ENDIAN
28
29 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
30 group of arguments and treat it as an array of the arguments. */
31
32 #define NO_ARG_ARRAY
33
34 /* Now define a symbol for the cpu type, if your compiler
35 does not define it automatically:
36 Ones defined so far include vax, m68000, ns16000, pyramid,
37 orion, tahoe, APOLLO and many others */
38
39 /* __ia64__ defined automatically */
40
41
42 /* Use type EMACS_INT rather than a union, to represent Lisp_Object */
43 /* This is desirable for most machines. */
44
45 #define NO_UNION_TYPE
46
47 /* Define the type to use. */
48 #define EMACS_INT long
49 #define EMACS_UINT unsigned long
50 #define SPECIAL_EMACS_INT
51
52 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
53 the 24-bit bit field into an int. In other words, if bit fields
54 are always unsigned.
55
56 If you use NO_UNION_TYPE, this flag does not matter. */
57
58 #define EXPLICIT_SIGN_EXTEND
59
60 /* Data type of load average, as read out of kmem. */
61
62 #define LOAD_AVE_TYPE long
63
64 /* Convert that into an integer that is 100 for a load average of 1.0 */
65
66 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
67
68 /* Define CANNOT_DUMP on machines where unexec does not work.
69 Then the function dump-emacs will not be defined
70 and temacs will do (load "loadup") automatically unless told otherwise. */
71 #if 0
72 #define CANNOT_DUMP
73 #endif
74
75 /* Define VIRT_ADDR_VARIES if the virtual addresses of
76 pure and impure space as loaded can vary, and even their
77 relative order cannot be relied on.
78
79 Otherwise Emacs assumes that text space precedes data space,
80 numerically. */
81
82 /* #define VIRT_ADDR_VARIES */
83
84 /* Define the following if GNU malloc and the relocating allocator do
85 not work together with X. */
86
87 /* #define SYSTEM_MALLOC */
88
89 /* Define NO_REMAP if memory segmentation makes it not work well
90 to change the boundary between the text section and data section
91 when Emacs is dumped. If you define this, the preloaded Lisp
92 code will not be sharable; but that's better than failing completely. */
93
94 /* #define NO_REMAP */
95
96 /* Some really obscure 4.2-based systems (like Sequent DYNIX) do not
97 support asynchronous I/O (using SIGIO) on sockets, even though it
98 works fine on tty's. If you have one of these systems, define the
99 following, and then use it in config.h (or elsewhere) to decide
100 when (not) to use SIGIO.
101
102 You'd think this would go in an operating-system description file,
103 but since it only occurs on some, but not all, BSD systems, the
104 reasonable place to select for it is in the machine description
105 file. */
106
107 /* #define NO_SOCK_SIGIO */
108
109 #ifdef __ELF__
110 #undef UNEXEC
111 #define UNEXEC unexelf.o
112 #endif
113
114 #define PNTR_COMPARISON_TYPE unsigned long
115
116 #ifndef NOT_C_CODE
117
118 #ifdef REL_ALLOC
119 #ifndef _MALLOC_INTERNAL
120 /* "char *" because ralloc.c defines it that way. gmalloc.c thinks it
121 is allowed to prototype these as "void *" so we don't prototype in
122 that case. You're right: it stinks! */
123 extern char *r_alloc (), *r_re_alloc ();
124 extern void r_alloc_free ();
125 #endif /* not _MALLOC_INTERNAL */
126 #endif /* REL_ALLOC */
127
128 #endif /* not NOT_C_CODE */
129
130 #define HAVE_TEXT_START
131
132 /* arch-tag: 9b8e9fb2-2e49-4c22-b68f-11a488e77c66
133 (do not change this comment) */