Subversion Repositories tendra.SVN

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
.\" 		 Crown Copyright (c) 1997
2
.\" 
3
.\" This TenDRA(r) Manual Page is subject to Copyright
4
.\" owned by the United Kingdom Secretary of State for Defence
5
.\" acting through the Defence Evaluation and Research Agency
6
.\" (DERA).  It is made available to Recipients with a
7
.\" royalty-free licence for its use, reproduction, transfer
8
.\" to other parties and amendment for any purpose not excluding
9
.\" product development provided that any such use et cetera
10
.\" shall be deemed to be acceptance of the following conditions:-
11
.\" 
12
.\"     (1) Its Recipients shall ensure that this Notice is
13
.\"     reproduced upon any copies or amended versions of it;
14
.\" 
15
.\"     (2) Any amended version of it shall be clearly marked to
16
.\"     show both the nature of and the organisation responsible
17
.\"     for the relevant amendment or amendments;
18
.\" 
19
.\"     (3) Its onward transfer from a recipient to another
20
.\"     party shall be deemed to be that party's acceptance of
21
.\"     these conditions;
22
.\" 
23
.\"     (4) DERA gives no warranty or assurance as to its
24
.\"     quality or suitability for any purpose and DERA accepts
25
.\"     no liability whatsoever in relation to any use to which
26
.\"     it may be put.
27
.\"
28
.TH mipstrans 1
29
.SH NAME
30
mipstrans \- MIPS TDF translator
31
.SH SYNOPSIS
32
\fBmipstrans\fR [ \fIoptions\fR ] \fIinf\fR \fIop.G\fR \fIop.H\fR [\fIop.s\fR]
33
.\" ----------------------------------------------------------------------
34
.SH DESCRIPTION
35
The code production portion of the TDF compiler is under the control of
36
a TDF translator, which translates a TDF capsule,\fIinf\fR, into assembly 
37
files.  There are separate TDF translators for each target architecture.
38
This manual page describes the translators which produce MIPS code.
39
There are two versions, one for IRIX, and one for ULTRIX. Both
40
produce .G and .H files required by as1, but may also optionally give .s
41
assembly files using \fB-S\fR. Note that full run-time diagnostic information 
42
cannot be transmitted through the MIPS assembler, as(1). 
43
.PP
44
It is recommended that \fBmipstrans\fR is not invoked directly, but via the
45
user interface \fItcc\fR(1).  The option \fB-\fIopt\fR can be passed
46
to \fBmipstrans\fR by passing the option \fB-Wt,-\fIopt\fR to \fItcc(1)\fR.
47
.\" ----------------------------------------------------------------------
48
.SH OPTIONS
49
These options are common to most translators, although the defaults may vary.
50
\fIswitch\fR stands for either \fB0\fR, to switch an option off, or \fB1\fR,
51
to switch it on.
52
.\" ----------------------------------------------------------------------
53
.IP \fB-A\fIswitch\fR
54
This option determines whether \fBmipstrans\fR should inline calls to
55
\fIalloca\fR.  This is done by default.
56
.\" ----------------------------------------------------------------------
57
.IP \fB-B\fIswitch\fR
58
This option determines whether \fBmipstrans\fR should report floating point
59
constants which exceed their range.  This is done by default.
60
If this option is switched off such constants are replaced by infinity.
61
.\" ----------------------------------------------------------------------
62
.IP \fB-C\fIswitch\fR
63
This option determines whether \fBmipstrans\fR should apply the "constants
64
out of loops" optimisation.  This is done by default.
65
.\" ----------------------------------------------------------------------
66
.IP \fB-D\fIswitch\fR
67
This option determines whether \fBmipstrans\fR should produce Position
68
Independent Code (PIC).  This is done by default in the IRIX version and not 
69
at all in the ULTRIX version.
70
.\" ----------------------------------------------------------------------
71
.IP \fB-E\fR
72
This option disables \fBmipstrans\fR's constant overflow checks.
73
.\" ----------------------------------------------------------------------
74
.IP \fB-F\fIswitch\fR
75
This option determines whether \fBmipstrans\fR should apply the "for all"
76
optimisation.  This is done by default.
77
.\" ----------------------------------------------------------------------
78
.IP \fB-H\fR
79
This option causes \fBmipstrans\fR to output debugging information in its
80
output file.  This will only work if the input TDF capsule contains
81
debugging information. The diagnostic format used is  as used by the native 
82
compilers.
83
.\" ----------------------------------------------------------------------
84
.IP \fB-I\fIswitch\fR
85
This option determines whether \fBmipstrans\fR should apply the "inlining"
86
optimisation.  This is done by default.
87
.\" ----------------------------------------------------------------------
88
.IP \fB-K\fIstr\fR
89
Causes \fBmipstrans\fR to optimise its code for a particular processor
90
model, determined by \fIstr\fR. At present there are no valid values for
91
\fIstr\fR. 
92
.\" ----------------------------------------------------------------------
93
.IP \fB-M\fIswitch\fR
94
This option determines whether \fBmipstrans\fR preserves division by a
95
floating point constant rather than replacing it by multiplication by
96
the reciprocal of the constant.  While the latter produces faster code,
97
it may lead to rounding errors.  By default, division by constants is
98
preserved.
99
.\" ----------------------------------------------------------------------
100
.IP \fB-P\fR
101
This option causes \fBmipstrans\fR to output profiling information suitable
102
for use with \fIprof\fR(1) or a similar tool (see individual manual
103
pages for details). This option is untested at present, and should not be used.
104
.\" ----------------------------------------------------------------------
105
.IP \fB-Q\fR
106
This option causes \fBmipstrans\fR to quit before processing its input
107
files.  This is particularly useful after \fB-V\fR.
108
.\" ----------------------------------------------------------------------
109
.IP \fB-R\fIswitch\fR
110
This option determines whether \fBmipstrans\fR should immediately round every
111
floating point operation to its appropriate range.  This produces slower
112
code, but is necessary for strict IEEE conformance.  It is not 
113
done by default.
114
.\" ----------------------------------------------------------------------
115
.IP \fB-S
116
This option will produce assembly code in the optional .s file.
117
.\" ----------------------------------------------------------------------
118
.IP \fB-U\fIswitch\fR
119
This option determines whether \fBmipstrans\fR should apply the "loop
120
unrolling" optimisation.  This is done by default.
121
.\" ----------------------------------------------------------------------
122
.IP \fB-V\fR
123
This option causes \fBmipstrans\fR to print its version number and the
124
version of the TDF specification it supports.
125
.\" ----------------------------------------------------------------------
126
.IP \fB-W\fIswitch\fR
127
This option determines whether \fBmipstrans\fR makes string literals
128
writable. At present all string literals are writable, and this cannot be
129
altered. 
130
.\" ----------------------------------------------------------------------
131
.IP \fB-X\fR
132
This option disables all optimisations.  All \fBmipstrans\fR's optimisations
133
are believed to be valid, so that any error in optimisation is a genuine
134
bug.
135
.\" ----------------------------------------------------------------------
136
.IP \fB-Z\fR
137
This option causes \fBmipstrans\fR to print the version number of all the
138
TDF capsules it decodes.
139
.\" ----------------------------------------------------------------------
140
.SH SEE ALSO
141
\fIas\fR(1),\fIprof(1)\fR, \fItcc\fR(1).
142
.\" ----------------------------------------------------------------------