Subversion Repositories tendra.SVN

Rev

Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 7
Line -... Line 1...
-
 
1
/*
-
 
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
 */
1
/*
31
/*
2
    		 Crown Copyright (c) 1997
32
    		 Crown Copyright (c) 1997
3
    
33
 
4
    This TenDRA(r) Computer Program is subject to Copyright
34
    This TenDRA(r) Computer Program is subject to Copyright
5
    owned by the United Kingdom Secretary of State for Defence
35
    owned by the United Kingdom Secretary of State for Defence
6
    acting through the Defence Evaluation and Research Agency
36
    acting through the Defence Evaluation and Research Agency
7
    (DERA).  It is made available to Recipients with a
37
    (DERA).  It is made available to Recipients with a
8
    royalty-free licence for its use, reproduction, transfer
38
    royalty-free licence for its use, reproduction, transfer
9
    to other parties and amendment for any purpose not excluding
39
    to other parties and amendment for any purpose not excluding
10
    product development provided that any such use et cetera
40
    product development provided that any such use et cetera
11
    shall be deemed to be acceptance of the following conditions:-
41
    shall be deemed to be acceptance of the following conditions:-
12
    
42
 
13
        (1) Its Recipients shall ensure that this Notice is
43
        (1) Its Recipients shall ensure that this Notice is
14
        reproduced upon any copies or amended versions of it;
44
        reproduced upon any copies or amended versions of it;
15
    
45
 
16
        (2) Any amended version of it shall be clearly marked to
46
        (2) Any amended version of it shall be clearly marked to
17
        show both the nature of and the organisation responsible
47
        show both the nature of and the organisation responsible
18
        for the relevant amendment or amendments;
48
        for the relevant amendment or amendments;
19
    
49
 
20
        (3) Its onward transfer from a recipient to another
50
        (3) Its onward transfer from a recipient to another
21
        party shall be deemed to be that party's acceptance of
51
        party shall be deemed to be that party's acceptance of
22
        these conditions;
52
        these conditions;
23
    
53
 
24
        (4) DERA gives no warranty or assurance as to its
54
        (4) DERA gives no warranty or assurance as to its
25
        quality or suitability for any purpose and DERA accepts
55
        quality or suitability for any purpose and DERA accepts
26
        no liability whatsoever in relation to any use to which
56
        no liability whatsoever in relation to any use to which
27
        it may be put.
57
        it may be put.
28
*/
58
*/
Line 43... Line 73...
43
Revision 1.1.1.1  1997/10/13 12:42:47  ma
73
Revision 1.1.1.1  1997/10/13 12:42:47  ma
44
First version.
74
First version.
45
 
75
 
46
Revision 1.2  1997/06/18 12:04:47  ma
76
Revision 1.2  1997/06/18 12:04:47  ma
47
Merged with Input Baseline changes.
77
Merged with Input Baseline changes.
48
 
78
 
49
Revision 1.1.1.1  1997/03/14 07:50:10  ma
79
Revision 1.1.1.1  1997/03/14 07:50:10  ma
50
Imported from DRA
80
Imported from DRA
51
 
81
 
52
 * Revision 1.2  1996/09/20  13:51:23  john
82
 * Revision 1.2  1996/09/20  13:51:23  john
53
 * *** empty log message ***
83
 * *** empty log message ***
54
 *
84
 *
55
 * Revision 1.1.1.1  1996/09/20  10:56:52  john
85
 * Revision 1.1.1.1  1996/09/20  10:56:52  john
56
 *
86
 *
57
 * Revision 1.1.1.1  1996/03/26  15:45:08  john
87
 * Revision 1.1.1.1  1996/03/26  15:45:08  john
58
 *
88
 *
59
 * Revision 1.1  93/02/22  17:15:10  17:15:10  ra (Robert Andrews)
89
 * Revision 1.1  93/02/22  17:15:10  17:15:10  ra (Robert Andrews)
60
 * Initial revision
90
 * Initial revision
61
 * 
91
 *
62
--------------------------------------------------------------------------
92
--------------------------------------------------------------------------
63
*/
93
*/
64
 
94
 
65
 
95
 
66
/*
96
/*
Line 106... Line 136...
106
 
136
 
107
#define  asm_dotty_instrs		/* instructions are mov.l etc */
137
#define  asm_dotty_instrs		/* instructions are mov.l etc */
108
#define  asm_percent_regs		/* registers are %d0 etc */
138
#define  asm_percent_regs		/* registers are %d0 etc */
109
 
139
 
110
#define  asm_data_first			/* true */
140
#define  asm_data_first			/* true */
111
#define  asm_nprefix			outc ( '&' )
141
#define  asm_nprefix			outc(' & ')
112
#define  asm_fprefix			outs ( "0f" )
142
#define  asm_fprefix			outs("0f")
113
#define  asm_ind_before			outc ( '(' )
143
#define  asm_ind_before			outc('(')
114
#define  asm_ind_middle			/* empty */
144
#define  asm_ind_middle			/* empty */
115
#define  asm_ind_after			outc ( ')' )
145
#define  asm_ind_after			outc(')')
116
#define  asm_predec_before		outs ( "-(" )
146
#define  asm_predec_before		outs(" - (")
117
#define  asm_predec_after		outc ( ')' )
147
#define  asm_predec_after		outc(')')
118
#define  asm_postinc_before		outc ( '(' )
148
#define  asm_postinc_before		outc('(')
119
#define  asm_postinc_after		outs ( ")+" )
149
#define  asm_postinc_after		outs(") + ")
120
#define  asm_scale_before		outc ( ',' )
150
#define  asm_scale_before		outc(',')
121
#define  asm_scale			outs ( ".l*" )
151
#define  asm_scale			outs(".l*")
122
#define  asm_scale_1			outs ( ".l" )
152
#define  asm_scale_1			outs(".l")
123
#define  asm_mem_before			outs ( "([" )
153
#define  asm_mem_before			outs("([")
124
#define  asm_mem_second			/* empty */
154
#define  asm_mem_second			/* empty */
125
#define  asm_mem_third			outc ( ']' )
155
#define  asm_mem_third			outc(']')
126
#define  asm_mem_after			outc ( ')' )
156
#define  asm_mem_after			outc(')')
127
#define  asm_bf_before			outc ( '{' )
157
#define  asm_bf_before			outc('{')
128
#define  asm_bf_middle			outc ( ':' )
158
#define  asm_bf_middle			outc(':')
129
#define  asm_bf_after			outc ( '}' )
159
#define  asm_bf_after			outc('}')
130
#define  asm_rpair_sep			outc ( ':' )
160
#define  asm_rpair_sep			outc(':')
131
#define  asm_comment			outc ( '#' )
161
#define  asm_comment			outc('#')
132
 
162
 
133
#define  asm_cmp_reversed		/* cmp instructions are reversed */
163
#define  asm_cmp_reversed		/* cmp instructions are reversed */
134
#define  asm_version			outs ( "\tversion 2" )
164
#define  asm_version			outs("\tversion 2")
135
#define  asm_version_aux		outs ( "\tversion 3" )
165
#define  asm_version_aux		outs("\tversion 3")
136
 
166
 
137
#endif /* HP_ASSEMBLER */
167
#endif /* HP_ASSEMBLER */
138
 
168
 
139
 
169
 
140
/*
170
/*
141
    HP DEBUGGER DETAILS
171
    HP DEBUGGER DETAILS
142
*/
172
*/
143
 
173
 
144
#ifdef XDB_DEBUGGER
174
#ifdef XDB_DEBUGGER
145
#define  default_diag			DIAG_UNKNOWN
175
#define default_diag			DIAG_UNKNOWN
146
#endif /* XDB_DEBUGGER */
176
#endif /* XDB_DEBUGGER */
147
 
177
 
148
 
178
 
149
/*
179
/*
150
    HP OPERATING SYSTEM INTERFACE
180
    HP OPERATING SYSTEM INTERFACE
151
*/
181
*/
152
 
182
 
153
#ifdef HP_INTERFACE
183
#ifdef HP_INTERFACE
154
 
184
 
155
#define  hp_cc_conventions		/* use HP conventions */
185
#define hp_cc_conventions		/* use HP conventions */
156
#define  float_to_unsigned		"___fixu"
186
#define float_to_unsigned		"___fixu"
157
#define  unsigned_to_float		"___floatu"
187
#define unsigned_to_float		"___floatu"
158
#define  profiling_routine		"mcount"
188
#define profiling_routine		"mcount"
159
#define  profiling_reg			REG_A0
189
#define profiling_reg			REG_A0
160
#define  profiling_uses_lea		0
190
#define profiling_uses_lea		0
161
 
191
 
162
#endif /* HP_INTERFACE */
192
#endif /* HP_INTERFACE */
163
 
193
 
164
 
194
 
165
/*
195
/*
166
    GAS (NEXT) ASSEMBLER DETAILS
196
    GAS (NEXT) ASSEMBLER DETAILS
167
*/
197
*/
168
 
198
 
169
#ifdef GAS_ASSEMBLER
199
#ifdef GAS_ASSEMBLER
170
 
200
 
171
#define  asm_simple_instrs		/* instructions are movl etc */
201
#define asm_simple_instrs		/* instructions are movl etc */
172
#define  asm_simple_regs		/* registers are d0 etc */
202
#define asm_simple_regs			/* registers are d0 etc */
173
 
203
 
174
#undef 	 asm_data_first			/* false */
204
#undef 	sm_data_first			/* false */
175
#define  asm_nprefix			outc ( '#' )
205
#define sm_nprefix			outc('#')
176
#define  asm_fprefix			outs ( "0r" )
206
#define sm_fprefix			outs("0r")
177
#define  asm_ind_before			/* empty */
207
#define sm_ind_before			/* empty */
178
#define  asm_ind_middle			outc ( '@' )
208
#define sm_ind_middle			outc('@')
179
#define  asm_ind_after			/* empty */
209
#define sm_ind_after			/* empty */
180
#define  asm_predec_before		/* empty */
210
#define sm_predec_before		/* empty */
181
#define  asm_predec_after		outs ( "@-" )
211
#define sm_predec_after			outs("@ - ")
182
#define  asm_postinc_before		/* empty */
212
#define sm_postinc_before		/* empty */
183
#define  asm_postinc_after		outs ( "@+" )
213
#define sm_postinc_after		outs("@ + ")
184
#define  asm_scale_before		/* empty */
214
#define sm_scale_before			/* empty */
185
#define  asm_scale			outs ( ":l:" )
215
#define sm_scale			outs(":l:")
186
#define  asm_scale_1			outs ( ":l" )
216
#define sm_scale_1			outs(":l")
187
#define  asm_mem_before			/* empty */
217
#define sm_mem_before			/* empty */
188
#define  asm_mem_second			outc ( '@' )
218
#define sm_mem_second			outc('@')
189
#define  asm_mem_third			outc ( '@' )
219
#define sm_mem_third			outc('@')
190
#define  asm_mem_after			/* empty */
220
#define sm_mem_after			/* empty */
191
#define  asm_bf_before			outc ( '{' )
221
#define sm_bf_before			outc('{')
192
#define  asm_bf_middle			outc ( ':' )
222
#define sm_bf_middle			outc(':')
193
#define  asm_bf_after			outc ( '}' )
223
#define sm_bf_after			outc('}')
194
#define  asm_rpair_sep			outc ( ':' )
224
#define sm_rpair_sep			outc(':')
195
#define  asm_comment			outc ( '#' )
225
#define sm_comment			outc('#')
196
 
226
 
197
#define  asm_does_jump_lens		/* calculates jump lengths */
227
#define asm_does_jump_lens		/* calculates jump lengths */
198
#define  asm_uses_equals		/* uses = rather than set */
228
#define asm_uses_equals			/* uses = rather than set */
199
#define  asm_uses_lcomm			/* uses lcomm rather than bss */
229
#define asm_uses_lcomm			/* uses lcomm rather than bss */
200
#define  asm_no_btst_suffix		/* doesn't understand btst.[bl] */
230
#define asm_no_btst_suffix		/* doesn't understand btst.[bl] */
201
 
231
 
202
#endif /* GAS_ASSEMBLER */
232
#endif /* GAS_ASSEMBLER */
203
 
233
 
204
 
234
 
205
/*
235
/*
206
    GNU DEBUGGER DETAILS
236
    GNU DEBUGGER DETAILS
207
*/
237
*/
208
 
238
 
209
#ifdef GDB_DEBUGGER
239
#ifdef GDB_DEBUGGER
210
#define  default_diag			DIAG_STAB
240
#define default_diag			DIAG_STAB
211
#endif /* GDB_DEBUGGER */
241
#endif /* GDB_DEBUGGER */
212
 
242
 
213
 
243
 
214
/*
244
/*
215
    NEXT OPERATING SYSTEM INTERFACE, or SunOS.
245
    NEXT OPERATING SYSTEM INTERFACE, or SunOS.
216
*/
246
*/
217
 
247
 
218
#ifdef NEXT_INTERFACE
248
#ifdef NEXT_INTERFACE
219
 
249
 
220
#define  gcc_conventions		/* use gcc conventions */
250
#define gcc_conventions			/* use gcc conventions */
221
#define  float_to_unsigned		"__fixunsdfsi"
251
#define float_to_unsigned		"__fixunsdfsi"
222
#undef   unsigned_to_float		/* use built-in version */
252
#undef  unsigned_to_float		/* use built-in version */
223
#define  profiling_routine		"mcount"
253
#define profiling_routine		"mcount"
224
#define  profiling_reg			REG_A0
254
#define profiling_reg			REG_A0
225
#define  profiling_uses_lea		1
255
#define profiling_uses_lea		1
226
 
256
 
227
#endif /* NEXT_INTERFACE */
257
#endif /* NEXT_INTERFACE */
228
 
258
 
229
#ifdef SUN_INTERFACE
259
#ifdef SUN_INTERFACE
230
 
260
 
Line 233... Line 263...
233
#undef unsigned_to_float
263
#undef unsigned_to_float
234
#define profiling_routine "mcount"  /* all the defines for profiling */
264
#define profiling_routine "mcount"  /* all the defines for profiling */
235
#define profiling_reg REG_A0        /* are probably wrong. */
265
#define profiling_reg REG_A0        /* are probably wrong. */
236
#define profiling_uses_lea 1
266
#define profiling_uses_lea 1
237
#endif
267
#endif
238
 
-