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