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 hppatrans 1
|
|
|
29 |
.SH NAME
|
|
|
30 |
\fBhppatrans \- TDF to HP PA-RISC translator
|
|
|
31 |
.SH SYNOPSIS
|
|
|
32 |
\fBhppatrans\fR [ \fIoptions\fR ] \fIinput-file\fR \fIoutput-file\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 into an assembly source
|
|
|
37 |
file. There are separate TDF translators for each target architecture.
|
|
|
38 |
This manual page describes the translator which produces assembly code
|
|
|
39 |
for the HP PA-RISC machines. It is recommended that hppatrans not be invoked
|
|
|
40 |
directly, but via the user interface \fItcc\fR(1). The option \fB-\fIopt\fR can be passed to hppatrans by passing the option \fB-Wt,-\fIopt\fR to
|
|
|
41 |
\fItcc\fR(1).
|
|
|
42 |
.\" ----------------------------------------------------------------------
|
|
|
43 |
.SH OPTIONS
|
|
|
44 |
The options \fB-h\fR and \fB-d\fR are specific to hppatrans. The other
|
|
|
45 |
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
|
|
|
47 |
\fB1\fR, to switch it on.
|
|
|
48 |
.\" ----------------------------------------------------------------------
|
|
|
49 |
.IP \fB-A\fIswitch\fR
|
|
|
50 |
This option determines whether hppatrans should inline calls to
|
|
|
51 |
\fBalloca\fR. This is done by default.
|
|
|
52 |
.\" ----------------------------------------------------------------------
|
|
|
53 |
.IP \fB-B\fIswitch\fR
|
|
|
54 |
This option determines whether hppatrans should report floating point
|
|
|
55 |
constants which exceed their range. This is done by default. If this option
|
|
|
56 |
is switched off such constants are replaced by infinity.
|
|
|
57 |
.\" ----------------------------------------------------------------------
|
|
|
58 |
.IP \fB-C\fIswitch\fR
|
|
|
59 |
This option determines whether hppatrans should apply the "constants out of
|
|
|
60 |
loops" optimisation. This is done by default.
|
|
|
61 |
.\" ----------------------------------------------------------------------
|
|
|
62 |
.IP \fB-D\fR\fIswitch\fR\ \fB-d\fR\fIswitch\fR
|
|
|
63 |
These options cause hppatrans to output \fBPosition Independent Code\fR (PIC).
|
|
|
64 |
The \fB-D\fR flag emulates cc's \fB+Z\fR flag, \fB-d\fR emulates cc's \fB+z\fR flag. Neither option has yet been tested.
|
|
|
65 |
.\" ----------------------------------------------------------------------
|
|
|
66 |
.IP \fB-E\fR
|
|
|
67 |
This option disables hppatrans' constant overflow checks.
|
|
|
68 |
.\" ----------------------------------------------------------------------
|
|
|
69 |
.IP \fB-F\fIswitch\fR
|
|
|
70 |
This option determines whether hppatrans should apply the "for all"
|
|
|
71 |
optimisation. This is done by default.
|
|
|
72 |
.\" ----------------------------------------------------------------------
|
|
|
73 |
.IP \fB-H\fR\ \fB-h\fR
|
|
|
74 |
|
|
|
75 |
The \fB-H\fR flag causes hppatrans to output \fBxdb\fR compatible debugging
|
|
|
76 |
information in its output file. This option is only available if the header
|
|
|
77 |
file \fBhpux_symtab.h\fR was included whilst compiling hppatrans. (hpux_symtab.h is available by anonymous FTP - see the release notes for further
|
|
|
78 |
information.) Please note well that there is a known bug in the \fB-H\fR
|
|
|
79 |
option. The bug sometimes prohibits \fBxdb\fR reading selective diagnostic
|
|
|
80 |
information from a suite of two or more modules linked together.
|
|
|
81 |
|
|
|
82 |
The \fB-h\fR flag causes hppatrans to output \fBgdb\fR compatible, i.e.
|
|
|
83 |
\fBstabs\fR, debugging information in its output file. The \fB-h\fR flag is
|
|
|
84 |
believed to be valid - any error is a genuine bug.
|
|
|
85 |
|
|
|
86 |
The -H and -h options will only work if the input TDF capsule contains
|
|
|
87 |
debugging information.
|
|
|
88 |
.\" ----------------------------------------------------------------------
|
|
|
89 |
.IP \fB-I\fIswitch\fR
|
|
|
90 |
This option determines whether hppatrans applies the "inlining" optimisation.
|
|
|
91 |
This is done by default.
|
|
|
92 |
.\" ----------------------------------------------------------------------
|
|
|
93 |
.IP \fB-K\fIstr\fR
|
|
|
94 |
Causes hppatrans to optimise its code for a particular processor
|
|
|
95 |
model, determined by \fIstr\fR. At present there are no valid values for
|
|
|
96 |
\fIstr\fR.
|
|
|
97 |
.\" ----------------------------------------------------------------------
|
|
|
98 |
.IP \fB-M\fIswitch\fR
|
|
|
99 |
This option determines whether hppatrans preserves division by a
|
|
|
100 |
floating point constant rather than replacing it by multiplication by
|
|
|
101 |
the reciprocal of the constant. While the latter produces faster code,
|
|
|
102 |
it may lead to rounding errors. By default, division by constants is
|
|
|
103 |
preserved.
|
|
|
104 |
.\" ----------------------------------------------------------------------
|
|
|
105 |
.IP \fB-P\fR
|
|
|
106 |
This option causes hppatrans to output \fBprofiling\fR information suitable
|
|
|
107 |
for use with \fBprof\fR(1) or a similar tool (see individual manual
|
|
|
108 |
pages for details).
|
|
|
109 |
.\" ----------------------------------------------------------------------
|
|
|
110 |
.IP \fB-Q\fR
|
|
|
111 |
This option causes hppatrans to quit before processing its input files. This
|
|
|
112 |
is particularly useful in conjunction with \fB-V\fR.
|
|
|
113 |
.\" ----------------------------------------------------------------------
|
|
|
114 |
.IP \fB-R\fIswitch\fR
|
|
|
115 |
This option determines whether hppatrans should immediately round every
|
|
|
116 |
floating point operation to its appropriate range. This produces slower
|
|
|
117 |
code, but is necessary for strict IEEE conformance. It is done by default.
|
|
|
118 |
.\" ----------------------------------------------------------------------
|
|
|
119 |
.IP \fB-U\fIswitch\fR
|
|
|
120 |
This option determines whether hppatrans should apply the "loop unrolling"
|
|
|
121 |
optimisation. This is done by default.
|
|
|
122 |
.\" ----------------------------------------------------------------------
|
|
|
123 |
.IP \fB-V\fR
|
|
|
124 |
This option causes hppatrans to print its version number, the version of
|
|
|
125 |
the TDF specification it supports, and the date of compilation.
|
|
|
126 |
.\" ----------------------------------------------------------------------
|
|
|
127 |
.IP \fB-W\fIswitch\fR
|
|
|
128 |
This option determines whether hppatrans makes string literals writable. At
|
|
|
129 |
present all string literals are writable, and this cannot be altered.
|
|
|
130 |
.\" ----------------------------------------------------------------------
|
|
|
131 |
.IP \fB-X\fR
|
|
|
132 |
This option disables all the optimisations performed by hppatrans. All
|
|
|
133 |
hppatrans' optimisations are believed to be valid - any error in
|
|
|
134 |
optimisation is a genuine bug.
|
|
|
135 |
.\" ----------------------------------------------------------------------
|
|
|
136 |
.IP \fB-Z\fR
|
|
|
137 |
This option causes hppatrans to print the version number of all the TDF
|
|
|
138 |
capsules it decodes.
|
|
|
139 |
.\" ----------------------------------------------------------------------
|
|
|
140 |
.SH SEE ALSO
|
|
|
141 |
\fItcc\fR(1),\fIcc\fR(1) and \fIxdb\fR(1).
|
|
|
142 |
.\" ----------------------------------------------------------------------
|
|
|
143 |
|