2001-11-19 19:43:55 +00:00
|
|
|
.\" Hey, Emacs! This is -*-nroff-*- you know...
|
|
|
|
.\"
|
|
|
|
.\" genccode.8: manual page for the gennames utility
|
|
|
|
.\"
|
2003-07-18 00:46:04 +00:00
|
|
|
.\" Copyright (C) 2003 IBM, Inc. and others.
|
2001-11-19 19:43:55 +00:00
|
|
|
.\"
|
2004-03-12 07:25:05 +00:00
|
|
|
.TH GENCCODE 8 "11 March 2004" "ICU MANPAGE" "ICU @VERSION@ Manual"
|
2001-11-19 19:43:55 +00:00
|
|
|
.SH NAME
|
|
|
|
.B genccode
|
2004-03-12 07:25:05 +00:00
|
|
|
\- generate C or platform specific assembly code from an ICU data file.
|
2001-11-19 19:43:55 +00:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.B genccode
|
|
|
|
[
|
|
|
|
.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
|
|
|
|
]
|
|
|
|
[
|
2004-03-12 07:25:05 +00:00
|
|
|
.BI "\-a\fP, \fB\-\-assembly" " name"
|
|
|
|
]
|
|
|
|
[
|
2001-11-19 19:43:55 +00:00
|
|
|
.BI "\-d\fP, \fB\-\-destdir" " destination"
|
|
|
|
]
|
|
|
|
[
|
2001-12-20 23:29:06 +00:00
|
|
|
.BI "\-n\fP, \fB\-\-name" " name"
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.BI "\-e\fP, \fB\-\-entrypoint" " name"
|
|
|
|
]
|
|
|
|
[
|
2003-07-18 00:46:04 +00:00
|
|
|
.BI "\-f\fP, \fB\-\-filename" " name"
|
|
|
|
]
|
|
|
|
[
|
2001-11-19 19:43:55 +00:00
|
|
|
.IR filename " .\|.\|."
|
|
|
|
]
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.B genccode
|
|
|
|
reads each of the supplied
|
|
|
|
.I filename
|
|
|
|
and writes out a C file containing a compilable definition of the data in
|
|
|
|
the data file.
|
|
|
|
The C file name is made by taking the base name of the data
|
|
|
|
.IR filename ,
|
|
|
|
replacing dots by underscores, and adding a
|
|
|
|
.I .c
|
|
|
|
file extension.
|
|
|
|
.PP
|
2004-03-12 07:25:05 +00:00
|
|
|
If the \fB-a\fP option is used, platform specific assembly
|
|
|
|
code is generated instead of C code.
|
|
|
|
Most C compilers will accept both C and assembly files.
|
|
|
|
Instead of writing a filename with a
|
|
|
|
.I .c
|
|
|
|
file extension, a filename with a
|
|
|
|
.I .s
|
|
|
|
will be written instead.
|
|
|
|
.PP
|
2001-11-19 19:43:55 +00:00
|
|
|
If
|
|
|
|
.B genccode
|
|
|
|
is called with no
|
|
|
|
.I filename
|
|
|
|
it terminates gracefully.
|
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
2002-01-18 19:45:44 +00:00
|
|
|
.BR "\-h\fP, \fB\-?\fP, \fB\-\-help"
|
2001-11-19 19:43:55 +00:00
|
|
|
Print help about usage and exit.
|
|
|
|
.TP
|
2004-03-12 07:25:05 +00:00
|
|
|
.BI "\-a\fP, \fB\-\-assembly" " name"
|
|
|
|
Output assembly code instead of C code.
|
|
|
|
Use \fB-h\fP to see the list of available types of assembly to generate and
|
|
|
|
to specify for this option.
|
|
|
|
.TP
|
2001-11-19 19:43:55 +00:00
|
|
|
.BI "\-d\fP, \fB\-\-destdir" " destination"
|
|
|
|
Set the destination directory to
|
|
|
|
.IR destination .
|
|
|
|
The default destination directory is the current directory.
|
2001-12-20 23:29:06 +00:00
|
|
|
.TP
|
|
|
|
.BI "\-n\fP, \fB\-\-name" " name"
|
2001-12-21 01:49:08 +00:00
|
|
|
Set the data name to
|
2001-12-20 23:29:06 +00:00
|
|
|
.I name
|
|
|
|
instead of the default. This name is also used as the base name of the
|
|
|
|
output. The default name is made of the
|
|
|
|
.I icudt
|
|
|
|
prefix, followed by a two-digit version number corresponding to
|
|
|
|
the current version of the ICU release, and a single letter indicating
|
|
|
|
the endianness of the data (the letter
|
|
|
|
.I b
|
|
|
|
indicated big endian data, and the letter
|
|
|
|
.I l
|
|
|
|
indicates little endian ones).
|
|
|
|
.TP
|
2003-07-18 00:46:04 +00:00
|
|
|
.BI "\-f\fP, \fB\-\-filename" " name"
|
|
|
|
Normally, an ICU data file such as mydata.icu will be turned into mydata_icu.c and mydata_icu.o.
|
|
|
|
However, if this parameter was set to "somedata", the output files will be somedata.o and
|
|
|
|
somedata.c, respectively.
|
|
|
|
.TP
|
2001-12-20 23:29:06 +00:00
|
|
|
.BI "\-e\fP, \fB\-\-entrypoint" " name"
|
2001-12-21 01:49:08 +00:00
|
|
|
Set the data entry point (used for linking against the data in a
|
2001-12-20 23:29:06 +00:00
|
|
|
shared library form) to
|
|
|
|
.IR name .
|
|
|
|
The default entry point name is made of the data (set by the
|
|
|
|
.BI "\-n\fP, \fB\-\-name"
|
|
|
|
option) followed by an underscore and the type of the data (set by the
|
|
|
|
.BI "\-t\fP, \fB\-\-type"
|
|
|
|
option).
|
2001-11-19 19:43:55 +00:00
|
|
|
.SH VERSION
|
|
|
|
@VERSION@
|
|
|
|
.SH COPYRIGHT
|
2004-03-12 07:25:05 +00:00
|
|
|
Copyright (C) 2000-2004 IBM, Inc. and others.
|