OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [doc/] [develenv/] [utils.texi] - Blame information for rev 1771

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
@c
2
@c  COPYRIGHT (c) 1988-2002.
3
@c  On-Line Applications Research Corporation (OAR).
4
@c  All rights reserved.
5
@c
6
@c  utils.texi,v 1.5 2002/01/17 21:47:44 joel Exp
7
@c
8
 
9
@ifinfo
10
@node RTEMS Specific Utilities, RTEMS Specific Utilities C Language Specific Utilities, Sample Applications Paranoia Floating Point Application, Top
11
@end ifinfo
12
@chapter RTEMS Specific Utilities
13
@ifinfo
14
@menu
15
* RTEMS Specific Utilities C Language Specific Utilities::
16
* RTEMS Specific Utilities Ada Language Specific Utilities::
17
@end menu
18
@end ifinfo
19
 
20
This section describes the additional commands
21
available within the RTEMS Development Environment.  Although
22
some of these commands are of general use, most are included to
23
provide some capability necessary to perform a required function
24
in the development of the RTEMS executive, one of its support
25
components, or an RTEMS based application.  The commands have
26
been classified into the following categories for clarity:
27
 
28
@itemize @bullet
29
@item C Language Specific Utilities
30
 
31
@item Ada Language Specific Utilities
32
@end itemize
33
 
34
Some of the commands are implemented as C programs.
35
However, most commands are implemented as Bourne shell scripts.
36
Even if the current user has selected a different shell, the
37
scripts will automatically invoke the Bourne shell during their
38
execution lifetime.
39
 
40
The commands are presented in UNIX manual page style
41
for compatibility and convenience.  A standard set of paragraph
42
headers were used for all of the command descriptions.  If a
43
section contained no data, the paragraph header was omitted to
44
conserve space.  Each of the permissible paragraph headers and
45
their contents are described below:
46
 
47
@table @code
48
@item SYNOPSIS
49
describes the command syntax
50
 
51
@item DESCRIPTION
52
a full description of the command
53
 
54
@item OPTIONS
55
describes each of the permissible options for the command
56
 
57
@item NOTES
58
lists any special noteworthy comments about the command
59
 
60
@item ENVIRONMENT
61
describes all environment variables utilized by the command
62
 
63
@item EXAMPLES
64
illustrates the use of the command with specific examples
65
 
66
@item FILES
67
provides a list of major files that the command references
68
 
69
@item SEE ALSO
70
lists any relevant commands which can be consulted
71
@end table
72
 
73
Most environment variables referenced by the commands
74
are defined for the RTEMS Development Environment during the
75
login procedure.  During login, the user selects a default RTEMS
76
environment through the use of the Modules package.  This tool
77
effectively sets the environment variables to provide a
78
consistent development environment for a specific user.
79
Additional environment variables within the RTEMS environment
80
were set by the system administrator during installation.  When
81
specifying paths, a command description makes use of these
82
environment variables.
83
 
84
When referencing other commands in the SEE ALSO
85
paragraph, the following notation is used:   command(code).
86
Where command is the name of a related command, and code is a
87
section number.  Valid section numbers are as follows:
88
 
89
@table @code
90
@item 1
91
Section 1 of the standard UNIX documentation
92
 
93
@item  1G
94
Section 1 of the GNU documentation
95
 
96
@item  1R
97
a manual page from this document, the RTEMS Development Environment Guide
98
@end table
99
 
100
For example, ls(1) means see the standard ls command
101
in section 1 of the UNIX documentation.  gcc020(1G) means see
102
the description of gcc020 in section 1 of the GNU documentation.
103
 
104
@ifinfo
105
@node RTEMS Specific Utilities C Language Specific Utilities, packhex - Compress Hexadecimal File, RTEMS Specific Utilities, RTEMS Specific Utilities
106
@end ifinfo
107
@section C Language Specific Utilities
108
@ifinfo
109
@menu
110
* packhex - Compress Hexadecimal File::
111
* unhex - Convert Hexadecimal File into Binary::
112
* size_rtems - report RTEMS size information::
113
@end menu
114
@end ifinfo
115
 
116
The C language utilities provide a powerful set of
117
tools which combine to allow operations within the RTEMS
118
Development Environment to be consistent and easy to use.  Much
119
effort was devoted to providing as close to the standard UNIX
120
and GNU style of operations as possible.  Each of these
121
utilities are described in the section below.
122
 
123
@ifinfo
124
@node packhex - Compress Hexadecimal File, unhex - Convert Hexadecimal File into Binary, RTEMS Specific Utilities C Language Specific Utilities, RTEMS Specific Utilities C Language Specific Utilities
125
@end ifinfo
126
@subsection packhex - Compress Hexadecimal File
127
 
128
@subheading SYNOPSIS
129
 
130
@example
131
packhex <source >destination
132
@end example
133
 
134
@subheading DESCRIPTION
135
 
136
packhex accepts Intel Hexadecimal or Motorola Srecord
137
on its standard input and attempts to pack as many contiguous
138
bytes as possible into a single hexadecimal record.  Many
139
programs output hexadecimal records which are less than 80 bytes
140
long (for human viewing).  The overhead required by each
141
unnecessary record is significant and packhex can often reduce
142
the size of the download image by 20%.  packhex attempts to
143
output records which are as long as the hexadecimal format
144
allows.
145
 
146
@subheading OPTIONS
147
 
148
This command has no options.
149
 
150
@subheading EXAMPLES
151
 
152
Assume the current directory contains the Motorola
153
Srecord file download.sr. Then executing the command:
154
 
155
@example
156
packhex <download.sr >packed.sr
157
@end example
158
 
159
will generate the file packed.sr which is usually
160
smaller than download.sr.
161
 
162
@subheading CREDITS
163
 
164
The source for packhex first appeared in the May 1993
165
issue of Embedded Systems magazine.  The code was downloaded
166
from their BBS.  Unfortunately, the author's name was not
167
provided in the listing.
168
 
169
@ifinfo
170
@node unhex - Convert Hexadecimal File into Binary, size_rtems - report RTEMS size information, packhex - Compress Hexadecimal File, RTEMS Specific Utilities C Language Specific Utilities
171
@end ifinfo
172
@subsection unhex - Convert Hexadecimal File into Binary Equivalent
173
 
174
@subheading SYNOPSIS
175
 
176
@example
177
unhex [-valF] [-o file] [file [file ...] ]
178
@end example
179
 
180
@subheading DESCRIPTION
181
 
182
unhex accepts Intel Hexadecimal, Motorola Srecord, or
183
TI 'B' records and converts them to their binary equivalent.
184
The output may sent to standout or may be placed in a specified
185
file with the -o option.  The designated output file may not be
186
an input file.  Multiple input files may be specified with their
187
outputs logically concatenated into the output file.
188
 
189
@subheading OPTIONS
190
 
191
This command has the following options:
192
 
193
@table @code
194
@item v
195
Verbose
196
 
197
@item a base
198
First byte of output corresponds with base
199
address
200
 
201
@item l
202
Linear Output
203
 
204
@item o file
205
Output File
206
 
207
@item F k_bits
208
Fill holes in input with 0xFFs up to k_bits * 1024 bits
209
@end table
210
 
211
@subheading EXAMPLES
212
 
213
The following command will create a binary equivalent
214
file for the two Motorola S record files in the specified output
215
file binary.bin:
216
 
217
@example
218
unhex -o binary.bin downloadA.sr downloadB.sr
219
@end example
220
 
221
@ifinfo
222
@node size_rtems - report RTEMS size information, RTEMS Specific Utilities Ada Language Specific Utilities, unhex - Convert Hexadecimal File into Binary, RTEMS Specific Utilities C Language Specific Utilities
223
@end ifinfo
224
@subsection size_rtems - report RTEMS size information
225
 
226
@subheading SYNOPSIS
227
 
228
@example
229
size_rtems
230
@end example
231
 
232
@subheading DESCRIPTION
233
 
234
size_rtems analyzes RTEMS and determines all of the
235
critical sizing information which is reported in the related
236
documentation.
237
 
238
@subheading EXAMPLES
239
 
240
To generate the RTEMS size report for the currently
241
configured processor, execute the following command:
242
 
243
@example
244
size_rtems
245
@end example
246
 
247
Although the actual size information will differ, a
248
report of the following format will be output:
249
 
250
@example
251
     RTEMS SIZE REPORT
252
 
253
CODE  DATA    BSS
254
==================
255
MANAGERS: 15988 0       0
256
CORE    : 4568  0       0
257
CPU     : 364   0       0
258
OVERALL : 20556 0       0
259
MINIMUM : 8752  0       0
260
 
261
init    : 1592  0       0
262
tasks   : 2440  0       0
263
intr    : 64    0       0
264
clock   : 2252  0       0
265
sem     : 876   0       0
266
msg     : 1624  0       0
267
event   : 604   0       0
268
signal  : 212   0       0
269
part    : 872   0       0
270
region  : 844   0       0
271
dpmem   : 532   0       0
272
timer   : 424   0       0
273
io      : 288   0       0
274
fatal   : 40    0       0
275
rtmon   : 764   0       0
276
mp      : 2984  0       0
277
 
278
sem     : 4     0       0
279
msg     : 4     0       0
280
event   : 4     0       0
281
signal  : 4     0       0
282
part    : 4     0       0
283
region  : 4     0       0
284
timer   : 4     0       0
285
dpmem   : 4     0       0
286
io      : 4     0       0
287
rtmon   : 4     0       0
288
mp      : 8     0       0
289
@end example
290
 
291
@subheading SEE ALSO
292
 
293
gsize020(1G), gsize386(1G), gsize960(1G)
294
 
295
 
296
@ifinfo
297
@node RTEMS Specific Utilities Ada Language Specific Utilities, Command and Variable Index, size_rtems - report RTEMS size information, RTEMS Specific Utilities
298
@end ifinfo
299
@section Ada Language Specific Utilities
300
 
301
The Ada language utilities provide a powerful set of
302
tools which combine to allow operations within the RTEMS
303
Development Environment to be consistent and easy to use.  Much
304
effort was devoted to providing as close to the standard UNIX
305
and GNU style of operations as possible.  Each of these
306
utilities are described in the section below.
307
 
308
NOTE:  The Ada implementation is not included in this
309
release.
310
 
311
 
312
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.