Subversion Repositories tendra.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
/*
7 7u83 2
 * Copyright (c) 2002-2005 The TenDRA Project <http://www.tendra.org/>.
3
 * All rights reserved.
4
 *
5
 * Redistribution and use in source and binary forms, with or without
6
 * modification, are permitted provided that the following conditions are met:
7
 *
8
 * 1. Redistributions of source code must retain the above copyright notice,
9
 *    this list of conditions and the following disclaimer.
10
 * 2. Redistributions in binary form must reproduce the above copyright notice,
11
 *    this list of conditions and the following disclaimer in the documentation
12
 *    and/or other materials provided with the distribution.
13
 * 3. Neither the name of The TenDRA Project nor the names of its contributors
14
 *    may be used to endorse or promote products derived from this software
15
 *    without specific, prior written permission.
16
 *
17
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
18
 * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
19
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
21
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22
 * EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
24
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
27
 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
 *
29
 * $Id$
30
 */
31
/*
2 7u83 32
    		 Crown Copyright (c) 1997
7 7u83 33
 
2 7u83 34
    This TenDRA(r) Computer Program is subject to Copyright
35
    owned by the United Kingdom Secretary of State for Defence
36
    acting through the Defence Evaluation and Research Agency
37
    (DERA).  It is made available to Recipients with a
38
    royalty-free licence for its use, reproduction, transfer
39
    to other parties and amendment for any purpose not excluding
40
    product development provided that any such use et cetera
41
    shall be deemed to be acceptance of the following conditions:-
7 7u83 42
 
2 7u83 43
        (1) Its Recipients shall ensure that this Notice is
44
        reproduced upon any copies or amended versions of it;
7 7u83 45
 
2 7u83 46
        (2) Any amended version of it shall be clearly marked to
47
        show both the nature of and the organisation responsible
48
        for the relevant amendment or amendments;
7 7u83 49
 
2 7u83 50
        (3) Its onward transfer from a recipient to another
51
        party shall be deemed to be that party's acceptance of
52
        these conditions;
7 7u83 53
 
2 7u83 54
        (4) DERA gives no warranty or assurance as to its
55
        quality or suitability for any purpose and DERA accepts
56
        no liability whatsoever in relation to any use to which
57
        it may be put.
58
*/
59
 
60
 
61
/* linux/config.h */
62
 
63
/**********************************************************************
64
$Author: release $
65
$Date: 1998/03/16 11:25:24 $
66
$Revision: 1.3 $
67
$Log: config.h,v $
68
 * Revision 1.3  1998/03/16  11:25:24  release
69
 * Modifications prior to version 4.1.2.
70
 *
71
 * Revision 1.2  1998/01/28  18:23:26  pwe
72
 * fpcon
73
 *
74
 * Revision 1.1.1.1  1998/01/17  15:55:52  release
75
 * First version to be checked into rolling release.
76
 *
77
 * Revision 1.18  1998/01/11  15:14:56  pwe
78
 * remove NEWDIAGS
79
 *
80
 * Revision 1.17  1997/04/02  10:33:18  pwe
81
 * diagnose pl_tests
82
 *
83
 * Revision 1.16  1996/05/20  14:30:55  pwe
84
 * improved 64-bit handling
85
 *
86
 * Revision 1.15  1996/02/20  14:45:25  pwe
87
 * linux/elf return struct
88
 *
89
 * Revision 1.14  1996/02/16  10:11:06  pwe
90
 * Linux/ELF struct result and PIC jump table
91
 *
92
 * Revision 1.13  1996/02/08  13:45:26  pwe
93
 * Linux elf v aout option
94
 *
95
 * Revision 1.12  1995/12/01  11:54:01  pwe
96
 * solaris proc equality
97
 *
98
 * Revision 1.11  1995/11/23  12:17:06  pwe
99
 * linux elf
100
 *
101
 * Revision 1.10  1995/10/09  15:14:23  pwe
102
 * dynamic initialisation etc
103
 *
104
 * Revision 1.9  1995/09/29  16:18:04  pwe
105
 * gcc_compatible default on Linux
106
 *
107
 * Revision 1.8  1995/09/20  12:00:35  pwe
108
 * svr4 and solaris initial_value, and solaris 64 bit correction
109
 *
110
 * Revision 1.7  1995/09/19  15:43:00  pwe
111
 * round, fp overflow etc
112
 *
113
 * Revision 1.6  1995/09/05  16:25:26  pwe
114
 * specials and exception changes
115
 *
116
 * Revision 1.5  1995/08/30  16:07:10  pwe
117
 * prepare exception trapping
118
 *
119
 * Revision 1.4  1995/07/07  15:22:24  pwe
120
 * prepare for 4.0, and correct PIC switch
121
 *
122
 * Revision 1.3  1995/01/30  14:43:47  pwe
123
 * defined value_of_null for CR95_032
124
 *
125
 * Revision 1.2  1995/01/30  12:57:11  pwe
126
 * Ownership -> PWE, tidy banners
127
 *
128
 * Revision 1.1  1994/11/08  16:28:00  jmf
129
 * Initial revision
130
 *
131
 * Revision 1.3  1994/08/04  13:37:04  jmf
132
 * Added condassign_tag
133
 *
134
 * Revision 1.2  1994/07/13  07:51:05  jmf
135
 * Added Log
136
 *
137
**********************************************************************/
138
 
139
#ifndef config_key
140
#define config_key 1
141
 
142
 
143
/* API SPECIFICATION */
144
#include "ossg_api.h"
145
#include "ossg.h"
146
 
147
#ifndef FS_LITTLE_ENDIAN
148
#define FS_LITTLE_ENDIAN	1
149
#endif
150
 
151
 
152
#define isvax 0
153
#define ismips 0
154
#define is68000 0
155
#define is80x86 1
156
#define ispower 0
157
#define issparc 0
158
#define istrans 0
159
#define ishppa 0
160
#define isAlpha 0
161
 
162
#define issco 0
163
#define issol86 0
164
#define islinux 1
165
#define isfreebsd 0
166
#define remove_struct_ref (!linux_elf)
167
 
168
#define has_setcc 1
169
#define little_end 1
170
#define has_byte_regs 1
171
#define has_byte_ops 1
172
#define only_lengthen_ops 1
173
#define has_neg_shift 0
174
#define regable_union 0
175
#define substitute_params 1
176
#define special_fns 1
177
#define shift_is_byte 1
178
#define only_inline_static 0
179
#define remove_zero_offsets 1
180
#define replace_compound 1
181
#define no_bitfield_ops 1
182
#define dont_unpad_apply 0
183
#define diagnose_registers 1
184
#define DWARF 0
185
#define load_ptr_pars 1
186
#define use_long_double 1
187
#define has64bits 1
188
#define keep_PIC_vars 0
189
#define div0_implemented 1
190
#define do_case_transforms 1
191
#define substitute_complex 1
192
#define has_rotate 1
193
#define GCC_STRUCTS -1	/* (linux_elf ? 0 : 1) */
194
 
195
 
196
#define maxmin_implemented 1
197
#define condassign_implemented 0
198
 
199
#define target_dbl_maxexp 4932
200
 
201
#define check_shape 1
202
#define value_of_null 0
203
#define no_trap_on_nil_contents 1
204
 
205
extern int linux_elf;  /* machine.c */
7 7u83 206
#define prefix_length	(linux_elf ? 0 : 1)	/* strlen(name_prefix) */
2 7u83 207
#define AVOID_INTOV 0	/* No software interrupts */
7 7u83 208
#define normal_fpucon	(linux_elf ? 0x37f : 0x372)
2 7u83 209
 
210
 
211
/* Parameters for foralls optimisations */
212
 
213
#define remove_unused_counters 0
214
#define remove_unused_index_counters 0
7 7u83 215
#define good_index_factor(f)	0
216
#define good_pointer_factor(f)	((f)!= 1 && (f)!= 2 && (f)!= 4 && (f)!= 8)
2 7u83 217
 
218
/* Parameters for TDF->TDF case_optimisation */
219
 
220
#define jump_table_density 10        /* between 0 and 100 */
221
 
7 7u83 222
/* jump_table density is the percentage of entries which must be filled
2 7u83 223
 * in a jump table in order for it to be created
224
 * So 0 would try to make everything into a jump table whereas 100
225
 * would mean only full jump tables could be put out
226
 */
227
 
228
#define non_default_entries 4      /* a positive integer */
229
 
230
/* non_default_entries is the minimum number of non default entries a
231
 * jump table can contain
232
 */
233
 
234
#define non_default_destinations 2  /* a positive integer */
235
 
236
/* non_default_destinations is the minimum number of non default destinations
237
 * a jump table can contain
238
 */
239
 
240
 
241
 
242
#define temp_mips 0
243
 
244
#endif