Blame | Last modification | View Log | RSS feed
.\" Crown Copyright (c) 1997
.\"
.\" This TenDRA(r) Manual Page is subject to Copyright
.\" owned by the United Kingdom Secretary of State for Defence
.\" acting through the Defence Evaluation and Research Agency
.\" (DERA). It is made available to Recipients with a
.\" royalty-free licence for its use, reproduction, transfer
.\" to other parties and amendment for any purpose not excluding
.\" product development provided that any such use et cetera
.\" shall be deemed to be acceptance of the following conditions:-
.\"
.\" (1) Its Recipients shall ensure that this Notice is
.\" reproduced upon any copies or amended versions of it;
.\"
.\" (2) Any amended version of it shall be clearly marked to
.\" show both the nature of and the organisation responsible
.\" for the relevant amendment or amendments;
.\"
.\" (3) Its onward transfer from a recipient to another
.\" party shall be deemed to be that party's acceptance of
.\" these conditions;
.\"
.\" (4) DERA gives no warranty or assurance as to its
.\" quality or suitability for any purpose and DERA accepts
.\" no liability whatsoever in relation to any use to which
.\" it may be put.
.\"
.TH powertrans 1
.SH NAME
powertrans \- POWER TDF translator
.SH SYNOPSIS
\fBpowertrans\fR [ \fIoptions\fR ] \fIinput-file\fR \fIoutput-file\fR
.SH DESCRIPTION
The code production portion of the TDF compiler is under the control of
a TDF translator, which translates a TDF capsule into an assembly source
file. There are separate TDF translators for each target architecture.
This manual page describes the translator which produces assembly code
common to the rs6000 and the POWERPc.
.PP
It is recommended that \fBpowertrans\fR is not invoked directly, but via the
user interface \fItcc\fR(1tdf). The option \fB-\fIopt\fR can be passed
to \fBpowertrans\fR by passing the option \fB-Wt,-\fIopt\fR to \fItcc\fR.
.\" ----------------------------------------------------------------------
.SH OPTIONS
These options are common to most translators, although the defaults may vary.
\fIswitch\fR stands for either \fB0\fR, to switch an option off, or \fB1\fR,
to switch it on.
.\" ----------------------------------------------------------------------
.IP \fB-A\fIswitch\fR
This option determines whether \fBpowertrans\fR should inline calls to
\fIalloca\fR. This is done by default.
.\" ----------------------------------------------------------------------
.IP \fB-B\fIswitch\fR
This option determines whether \fBpowertrans\fR should report floating point
constants which exceed their range. This is done by default.
If this option is switched off such constants are replaced by infinity.
.\" ----------------------------------------------------------------------
.IP \fB-C\fIswitch\fR
This option determines whether \fBpowertrans\fR should apply the "constants
out of loops" optimisation. This is done by default.
.\" ----------------------------------------------------------------------
.IP \fB-E\fR
This option disables \fBpowertrans\fR's constant overflow checks.
.\" ----------------------------------------------------------------------
.IP \fB-F\fIswitch\fR
This option determines whether \fBpowertrans\fR should apply the "for all"
optimisation. This is done by default.
.\" ----------------------------------------------------------------------
.IP \fB-H\fR
This option causes \fBpowertrans\fR to output debugging information in its
output file. This will only work if the input TDF capsule contains
debugging information.
.\" ----------------------------------------------------------------------
.IP \fB-I\fIswitch\fR
This option determines whether \fBpowertrans\fR should apply the "inlining"
optimisation. This is done by default.
.\" ----------------------------------------------------------------------
.IP \fB-K\fIstr\fR
Causes \fBpowertrans\fR to optimise its code for a particular processor
model, determined by \fIstr\fR. Currently "P" is supported for the
POWERPc and "R" for the rs6000.
.\" ----------------------------------------------------------------------
.IP \fB-M\fIswitch\fR
This option determines whether \fBpowertrans\fR preserves division by a
floating point constant rather than replacing it by multiplication by
the reciprocal of the constant. While the latter produces faster code,
it may lead to rounding errors. By default, division by constants is
preserved.
.\" ----------------------------------------------------------------------
.IP \fB-P\fR
This option causes \fBpowertrans\fR to output profiling information suitable
for use with \fIprof\fR(1) or a similar tool (see individual manual
pages for details).
.\" ----------------------------------------------------------------------
.IP \fB-Q\fR
This option causes \fBpowertrans\fR to quit before processing its input
files. This is particularly useful in conjunction with \fB-V\fR.
.\" ----------------------------------------------------------------------
.IP \fB-R\fIswitch\fR
This option determines whether \fBpowertrans\fR should immediately round every
floating point operation to its appropriate range. This produces slower
code, but is necessary for strict IEEE conformance. It is done by default.
.\" ----------------------------------------------------------------------
.IP \fB-U\fIswitch\fR
This option determines whether \fBpowertrans\fR should apply the "loop
unrolling" optimisation. This is done by default.
.\" ----------------------------------------------------------------------
.IP \fB-V\fR
This option causes \fBpowertrans\fR to print its version number and the
version of the TDF specification it supports.
.\" ----------------------------------------------------------------------
.IP \fB-W\fIswitch\fR
This option determines whether \fBpowertrans\fR makes string literals
writable. At present all string literals are writable, and this cannot be
altered.
.\" ----------------------------------------------------------------------
.IP \fB-X\fR
This option disables all optimisations. All \fBpowertrans\fR's optimisations
are believed to be valid, so that any error in optimisation is a genuine
bug.
.\" ----------------------------------------------------------------------
.IP \fB-Z\fR
This option causes \fBpowertrans\fR to print the version number of all the
TDF capsules it decodes.
.\" ----------------------------------------------------------------------
.SH SEE ALSO
\fIas\fR(1), \fIprof(1)\fR, \fIalphatrans\fR(1), \fIhppatrans\fR(1),
\fImipstrans\fR(1), \fIsparctrans\fR(1), \fItrans386\fR(1), \fItcc\fR(1).
.\" ----------------------------------------------------------------------