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 powertrans 1
|
|
|
29 |
.SH NAME
|
|
|
30 |
powertrans \- POWER TDF translator
|
|
|
31 |
.SH SYNOPSIS
|
|
|
32 |
\fBpowertrans\fR [ \fIoptions\fR ] \fIinput-file\fR \fIoutput-file\fR
|
|
|
33 |
.SH DESCRIPTION
|
|
|
34 |
The code production portion of the TDF compiler is under the control of
|
|
|
35 |
a TDF translator, which translates a TDF capsule into an assembly source
|
|
|
36 |
file. There are separate TDF translators for each target architecture.
|
|
|
37 |
This manual page describes the translator which produces assembly code
|
|
|
38 |
common to the rs6000 and the POWERPc.
|
|
|
39 |
.PP
|
|
|
40 |
It is recommended that \fBpowertrans\fR is not invoked directly, but via the
|
|
|
41 |
user interface \fItcc\fR(1tdf). The option \fB-\fIopt\fR can be passed
|
|
|
42 |
to \fBpowertrans\fR by passing the option \fB-Wt,-\fIopt\fR to \fItcc\fR.
|
|
|
43 |
.\" ----------------------------------------------------------------------
|
|
|
44 |
.SH OPTIONS
|
|
|
45 |
These options are common to most translators, although the defaults may vary.
|
|
|
46 |
\fIswitch\fR stands for either \fB0\fR, to switch an option off, or \fB1\fR,
|
|
|
47 |
to switch it on.
|
|
|
48 |
.\" ----------------------------------------------------------------------
|
|
|
49 |
.IP \fB-A\fIswitch\fR
|
|
|
50 |
This option determines whether \fBpowertrans\fR should inline calls to
|
|
|
51 |
\fIalloca\fR. This is done by default.
|
|
|
52 |
.\" ----------------------------------------------------------------------
|
|
|
53 |
.IP \fB-B\fIswitch\fR
|
|
|
54 |
This option determines whether \fBpowertrans\fR should report floating point
|
|
|
55 |
constants which exceed their range. This is done by default.
|
|
|
56 |
If this option is switched off such constants are replaced by infinity.
|
|
|
57 |
.\" ----------------------------------------------------------------------
|
|
|
58 |
.IP \fB-C\fIswitch\fR
|
|
|
59 |
This option determines whether \fBpowertrans\fR should apply the "constants
|
|
|
60 |
out of loops" optimisation. This is done by default.
|
|
|
61 |
.\" ----------------------------------------------------------------------
|
|
|
62 |
.IP \fB-E\fR
|
|
|
63 |
This option disables \fBpowertrans\fR's constant overflow checks.
|
|
|
64 |
.\" ----------------------------------------------------------------------
|
|
|
65 |
.IP \fB-F\fIswitch\fR
|
|
|
66 |
This option determines whether \fBpowertrans\fR should apply the "for all"
|
|
|
67 |
optimisation. This is done by default.
|
|
|
68 |
.\" ----------------------------------------------------------------------
|
|
|
69 |
.IP \fB-H\fR
|
|
|
70 |
This option causes \fBpowertrans\fR to output debugging information in its
|
|
|
71 |
output file. This will only work if the input TDF capsule contains
|
|
|
72 |
debugging information.
|
|
|
73 |
.\" ----------------------------------------------------------------------
|
|
|
74 |
.IP \fB-I\fIswitch\fR
|
|
|
75 |
This option determines whether \fBpowertrans\fR should apply the "inlining"
|
|
|
76 |
optimisation. This is done by default.
|
|
|
77 |
.\" ----------------------------------------------------------------------
|
|
|
78 |
.IP \fB-K\fIstr\fR
|
|
|
79 |
Causes \fBpowertrans\fR to optimise its code for a particular processor
|
|
|
80 |
model, determined by \fIstr\fR. Currently "P" is supported for the
|
|
|
81 |
POWERPc and "R" for the rs6000.
|
|
|
82 |
.\" ----------------------------------------------------------------------
|
|
|
83 |
.IP \fB-M\fIswitch\fR
|
|
|
84 |
This option determines whether \fBpowertrans\fR preserves division by a
|
|
|
85 |
floating point constant rather than replacing it by multiplication by
|
|
|
86 |
the reciprocal of the constant. While the latter produces faster code,
|
|
|
87 |
it may lead to rounding errors. By default, division by constants is
|
|
|
88 |
preserved.
|
|
|
89 |
.\" ----------------------------------------------------------------------
|
|
|
90 |
.IP \fB-P\fR
|
|
|
91 |
This option causes \fBpowertrans\fR to output profiling information suitable
|
|
|
92 |
for use with \fIprof\fR(1) or a similar tool (see individual manual
|
|
|
93 |
pages for details).
|
|
|
94 |
.\" ----------------------------------------------------------------------
|
|
|
95 |
.IP \fB-Q\fR
|
|
|
96 |
This option causes \fBpowertrans\fR to quit before processing its input
|
|
|
97 |
files. This is particularly useful in conjunction with \fB-V\fR.
|
|
|
98 |
.\" ----------------------------------------------------------------------
|
|
|
99 |
.IP \fB-R\fIswitch\fR
|
|
|
100 |
This option determines whether \fBpowertrans\fR should immediately round every
|
|
|
101 |
floating point operation to its appropriate range. This produces slower
|
|
|
102 |
code, but is necessary for strict IEEE conformance. It is done by default.
|
|
|
103 |
.\" ----------------------------------------------------------------------
|
|
|
104 |
.IP \fB-U\fIswitch\fR
|
|
|
105 |
This option determines whether \fBpowertrans\fR should apply the "loop
|
|
|
106 |
unrolling" optimisation. This is done by default.
|
|
|
107 |
.\" ----------------------------------------------------------------------
|
|
|
108 |
.IP \fB-V\fR
|
|
|
109 |
This option causes \fBpowertrans\fR to print its version number and the
|
|
|
110 |
version of the TDF specification it supports.
|
|
|
111 |
.\" ----------------------------------------------------------------------
|
|
|
112 |
.IP \fB-W\fIswitch\fR
|
|
|
113 |
This option determines whether \fBpowertrans\fR makes string literals
|
|
|
114 |
writable. At present all string literals are writable, and this cannot be
|
|
|
115 |
altered.
|
|
|
116 |
.\" ----------------------------------------------------------------------
|
|
|
117 |
.IP \fB-X\fR
|
|
|
118 |
This option disables all optimisations. All \fBpowertrans\fR's optimisations
|
|
|
119 |
are believed to be valid, so that any error in optimisation is a genuine
|
|
|
120 |
bug.
|
|
|
121 |
.\" ----------------------------------------------------------------------
|
|
|
122 |
.IP \fB-Z\fR
|
|
|
123 |
This option causes \fBpowertrans\fR to print the version number of all the
|
|
|
124 |
TDF capsules it decodes.
|
|
|
125 |
.\" ----------------------------------------------------------------------
|
|
|
126 |
.SH SEE ALSO
|
|
|
127 |
\fIas\fR(1), \fIprof(1)\fR, \fIalphatrans\fR(1), \fIhppatrans\fR(1),
|
|
|
128 |
\fImipstrans\fR(1), \fIsparctrans\fR(1), \fItrans386\fR(1), \fItcc\fR(1).
|
|
|
129 |
.\" ----------------------------------------------------------------------
|
|
|
130 |
|