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
/*
2
    		 Crown Copyright (c) 1997
3
 
4
    This TenDRA(r) Computer Program is subject to Copyright
5
    owned by the United Kingdom Secretary of State for Defence
6
    acting through the Defence Evaluation and Research Agency
7
    (DERA).  It is made available to Recipients with a
8
    royalty-free licence for its use, reproduction, transfer
9
    to other parties and amendment for any purpose not excluding
10
    product development provided that any such use et cetera
11
    shall be deemed to be acceptance of the following conditions:-
12
 
13
        (1) Its Recipients shall ensure that this Notice is
14
        reproduced upon any copies or amended versions of it;
15
 
16
        (2) Any amended version of it shall be clearly marked to
17
        show both the nature of and the organisation responsible
18
        for the relevant amendment or amendments;
19
 
20
        (3) Its onward transfer from a recipient to another
21
        party shall be deemed to be that party's acceptance of
22
        these conditions;
23
 
24
        (4) DERA gives no warranty or assurance as to its
25
        quality or suitability for any purpose and DERA accepts
26
        no liability whatsoever in relation to any use to which
27
        it may be put.
28
*/
29
 
30
 
31
/* linux/machine.c */
32
 
33
/**********************************************************************
34
$Author: release $
35
$Date: 1998/02/25 12:32:46 $
36
$Revision: 1.1.1.1 $
37
$Log: machine.c,v $
38
 * Revision 1.1.1.1  1998/02/25  12:32:46  release
39
 * Initial version
40
 *
41
 * Revision 1.1.1.1  1998/01/17  15:55:52  release
42
 * First version to be checked into rolling release.
43
 *
44
 * Revision 1.6  1996/03/12  12:44:28  pwe
45
 * 64-bit ints compatible with gcc long long
46
 *
47
 * Revision 1.5  1996/02/08  13:45:32  pwe
48
 * Linux elf v aout option
49
 *
50
 * Revision 1.4  1995/10/02  08:12:15  pwe
51
 * correct gcc reg_result structs
52
 *
53
 * Revision 1.3  1995/09/29  16:18:07  pwe
54
 * gcc_compatible default on Linux
55
 *
56
 * Revision 1.2  1995/01/30  12:57:14  pwe
57
 * Ownership -> PWE, tidy banners
58
 *
59
 * Revision 1.1  1994/11/08  16:28:22  jmf
60
 * Initial revision
61
 *
62
 * Revision 1.3  1994/07/13  07:51:05  jmf
63
 * Added Log
64
 *
65
**********************************************************************/
66
 
67
 
68
 
69
#include "config.h"
70
#include "common_types.h"
71
#include "expmacs.h"
72
#include "exp.h"
73
#include "shapemacs.h"
74
#include "out.h"
75
#include "localflags.h"
76
#include "szs_als.h"
77
 
78
/* VARIABLES */
79
/* All variables are initialised, jmf */
80
 
81
int linux_elf = 0;
82
 
83
char * local_prefix = "L";
84
char * name_prefix = "_";
85
 
86
 
87
 
88
/* PROCEDURES */
89
 
90
void set_linux_format
91
    PROTO_N ( (elf) )
92
    PROTO_T ( int elf )
93
{
94
  UNUSED (elf);
95
  return;
96
}
97
 
98
 
99
/* is the result of a procedure delivering
100
   this shape produced in registers. */
101
int reg_result
102
    PROTO_N ( (sha) )
103
    PROTO_T ( shape sha )
104
{
105
  unsigned char  n = name(sha);
106
  if (gcc_compatible) {
107
    int sz = shape_size(sha);
108
    if (n == nofhd)
109
      return 0;
110
    if (n == cpdhd && sz != 8 && sz != 16 && sz != 32 && sz != 64)
111
      return 0;
112
    return 1;
113
  };
114
  if (n == cpdhd || n == nofhd)
115
    return 0;
116
  return 1;
117
}
118
 
119
 
120