]> git.saurik.com Git - apple/icu.git/blame - icuSources/tools/genccode/genccode.8.in
ICU-57166.0.1.tar.gz
[apple/icu.git] / icuSources / tools / genccode / genccode.8.in
CommitLineData
b75a7d8f
A
1.\" Hey, Emacs! This is -*-nroff-*- you know...
2.\"
3.\" genccode.8: manual page for the gennames utility
4.\"
374ca955 5.\" Copyright (C) 2003-2004 IBM, Inc. and others.
b75a7d8f 6.\"
374ca955 7.TH GENCCODE 8 "11 March 2004" "ICU MANPAGE" "ICU @VERSION@ Manual"
b75a7d8f
A
8.SH NAME
9.B genccode
374ca955 10\- generate C or platform specific assembly code from an ICU data file.
b75a7d8f
A
11.SH SYNOPSIS
12.B genccode
13[
14.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
15]
16[
374ca955
A
17.BI "\-a\fP, \fB\-\-assembly" " name"
18]
19[
b75a7d8f
A
20.BI "\-d\fP, \fB\-\-destdir" " destination"
21]
22[
23.BI "\-n\fP, \fB\-\-name" " name"
24]
25[
26.BI "\-e\fP, \fB\-\-entrypoint" " name"
27]
28[
374ca955
A
29.BI "\-f\fP, \fB\-\-filename" " name"
30]
31[
b75a7d8f
A
32.IR filename " .\|.\|."
33]
34.SH DESCRIPTION
35.B genccode
36reads each of the supplied
37.I filename
38and writes out a C file containing a compilable definition of the data in
39the data file.
40The C file name is made by taking the base name of the data
41.IR filename ,
42replacing dots by underscores, and adding a
43.I .c
44file extension.
45.PP
374ca955
A
46If the \fB-a\fP option is used, platform specific assembly
47code is generated instead of C code.
48Most C compilers will accept both C and assembly files.
49Instead of writing a filename with a
50.I .c
51file extension, a filename with a
52.I .s
53will be written instead.
54.PP
b75a7d8f
A
55If
56.B genccode
57is called with no
58.I filename
59it terminates gracefully.
60.SH OPTIONS
61.TP
62.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
63Print help about usage and exit.
64.TP
374ca955
A
65.BI "\-a\fP, \fB\-\-assembly" " name"
66Output assembly code instead of C code.
67Use \fB-h\fP to see the list of available types of assembly to generate and
68to specify for this option.
69.TP
b75a7d8f
A
70.BI "\-d\fP, \fB\-\-destdir" " destination"
71Set the destination directory to
72.IR destination .
73The default destination directory is the current directory.
74.TP
75.BI "\-n\fP, \fB\-\-name" " name"
76Set the data name to
77.I name
78instead of the default. This name is also used as the base name of the
79output. The default name is made of the
80.I icudt
81prefix, followed by a two-digit version number corresponding to
82the current version of the ICU release, and a single letter indicating
83the endianness of the data (the letter
84.I b
85indicated big endian data, and the letter
86.I l
87indicates little endian ones).
88.TP
374ca955
A
89.BI "\-f\fP, \fB\-\-filename" " name"
90Normally, an ICU data file such as mydata.icu will be turned into mydata_icu.c and mydata_icu.o.
91However, if this parameter was set to "somedata", the output files will be somedata.o and
92somedata.c, respectively.
93.TP
b75a7d8f
A
94.BI "\-e\fP, \fB\-\-entrypoint" " name"
95Set the data entry point (used for linking against the data in a
96shared library form) to
97.IR name .
98The default entry point name is made of the data (set by the
99.BI "\-n\fP, \fB\-\-name"
100option) followed by an underscore and the type of the data (set by the
101.BI "\-t\fP, \fB\-\-type"
102option).
103.SH VERSION
104@VERSION@
105.SH COPYRIGHT
374ca955 106Copyright (C) 2000-2004 IBM, Inc. and others.