Subversion Repositories tendra.SVN

Rev

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

Rev Author Line No. Line
2 7u83 1
/*
6 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
6 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:-
6 7u83 42
 
2 7u83 43
        (1) Its Recipients shall ensure that this Notice is
44
        reproduced upon any copies or amended versions of it;
6 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;
6 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;
6 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
/* freebsd/config.h */
62
 
63
#ifndef config_key
64
#define config_key 1
65
 
66
 
67
/* API SPECIFICATION */
68
#include "ossg_api.h"
69
#include "ossg.h"
70
 
71
#ifndef FS_LITTLE_ENDIAN
72
#define FS_LITTLE_ENDIAN	1
73
#endif
74
 
75
 
76
#define isvax 0
77
#define ismips 0
78
#define is68000 0
79
#define is80x86 1
80
#define ispower 0
81
#define issparc 0
82
#define istrans 0
83
#define ishppa 0
84
#define isAlpha 0
85
 
86
#define issco 0
87
#define issol86 0
88
#define islinux 0
89
#define isfreebsd 1
6 7u83 90
#define remove_struct_ref (!freebsd_elf)
2 7u83 91
 
92
#define has_setcc 1
93
#define little_end 1
94
#define has_byte_regs 1
95
#define has_byte_ops 1
96
#define only_lengthen_ops 1
97
#define has_neg_shift 0
98
#define regable_union 0
99
#define substitute_params 1
100
#define special_fns 1
101
#define shift_is_byte 1
102
#define only_inline_static 0
103
#define remove_zero_offsets 1
104
#define replace_compound 1
105
#define no_bitfield_ops 1
106
#define dont_unpad_apply 0
107
#define diagnose_registers 1
108
#define DWARF 0
109
#define load_ptr_pars 1
110
#define use_long_double 1
111
#define has64bits 1
112
#define keep_PIC_vars 0
113
#define div0_implemented 1
114
#define do_case_transforms 1
115
#define substitute_complex 1
116
#define has_rotate 1
6 7u83 117
#define GCC_STRUCTS -1 /* !freebsd_elf */
2 7u83 118
 
119
 
120
#define maxmin_implemented 1
121
#define condassign_implemented 0
122
 
123
#define target_dbl_maxexp 308
124
 
125
#define check_shape 1
126
#define value_of_null 0
127
#define no_trap_on_nil_contents 1
128
 
6 7u83 129
extern int freebsd_elf;
130
#define prefix_length (freebsd_elf ? 0 : 1)	/* strlen(name_prefix) */
2 7u83 131
#define AVOID_INTOV 0	/* No software interrupts */
132
#define normal_fpucon 0x1272
133
 
134
 
135
/* Parameters for foralls optimisations */
136
 
137
#define remove_unused_counters 0
138
#define remove_unused_index_counters 0
6 7u83 139
#define good_index_factor(f)	0
140
#define good_pointer_factor(f)	((f)!= 1 && (f)!= 2 && (f)!= 4 && (f)!= 8)
2 7u83 141
 
142
/* Parameters for TDF->TDF case_optimisation */
143
 
144
#define jump_table_density 10        /* between 0 and 100 */
145
 
6 7u83 146
/* jump_table density is the percentage of entries which must be filled
2 7u83 147
 * in a jump table in order for it to be created
148
 * So 0 would try to make everything into a jump table whereas 100
149
 * would mean only full jump tables could be put out
150
 */
151
 
152
#define non_default_entries 4      /* a positive integer */
153
 
154
/* non_default_entries is the minimum number of non default entries a
155
 * jump table can contain
156
 */
157
 
158
#define non_default_destinations 2  /* a positive integer */
159
 
160
/* non_default_destinations is the minimum number of non default destinations
161
 * a jump table can contain
162
 */
163
 
164
 
165
 
166
#define temp_mips 0
167
 
6 7u83 168
extern void set_freebsd_format(int);
169
 
2 7u83 170
#endif