man-pages/man8/genccode.8.html
2021-03-31 01:06:50 +01:00

174 lines
3.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of GENCCODE</TITLE>
</HEAD><BODY>
<H1>GENCCODE</H1>
Section: ICU 66.1 Manual (8)<BR>Updated: 11 March 2004<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
<B>genccode</B>
- generate C or platform specific assembly code from an ICU data file.
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>genccode</B>
[
<B>-h</B>, <B>-?</B>, <B>--help</B>
]
[
<B>-a</B>, <B>--assembly</B><I> name</I>
]
[
<B>-d</B>, <B>--destdir</B><I> destination</I>
]
[
<B>-n</B>, <B>--name</B><I> name</I>
]
[
<B>-e</B>, <B>--entrypoint</B><I> name</I>
]
[
<B>-f</B>, <B>--filename</B><I> name</I>
]
[
<I>filename</I> ...
]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<B>genccode</B>
reads each of the supplied
<I>filename</I>
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
<I>filename</I>,
replacing dots by underscores, and adding a
<I>.c</I>
file extension.
<P>
If the <B>-a</B> 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</I>
file extension, a filename with a
<I>.s</I>
will be written instead.
<P>
If
<B>genccode</B>
is called with no
<I>filename</I>
it terminates gracefully.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT id="1"><B>-h</B>, <B>-?</B>, <B>--help</B>
<DD>
Print help about usage and exit.
<DT id="2"><B>-a</B>, <B>--assembly</B><I> name</I>
<DD>
Output assembly code instead of C code.
Use <B>-h</B> to see the list of available types of assembly to generate and
to specify for this option.
<DT id="3"><B>-d</B>, <B>--destdir</B><I> destination</I>
<DD>
Set the destination directory to
<I>destination</I>.
The default destination directory is the current directory.
<DT id="4"><B>-n</B>, <B>--name</B><I> name</I>
<DD>
Set the data name to
<I>name</I>
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</I>
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</I>
indicated big endian data, and the letter
<I>l</I>
indicates little endian ones).
<DT id="5"><B>-f</B>, <B>--filename</B><I> name</I>
<DD>
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 &quot;somedata&quot;, the output files will be somedata.o and
somedata.c, respectively.
<DT id="6"><B>-e</B>, <B>--entrypoint</B><I> name</I>
<DD>
Set the data entry point (used for linking against the data in a
shared library form) to
<I>name</I>.
The default entry point name is made of the data (set by the
<B>-n</B>, <B>--name</B>
option) followed by an underscore and the type of the data (set by the
<B>-t</B>, <B>--type</B>
option).
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>VERSION</H2>
66.1
<A NAME="lbAG">&nbsp;</A>
<H2>COPYRIGHT</H2>
Copyright (C) 2000-2004 IBM, Inc. and others.
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="7"><A HREF="#lbAB">NAME</A><DD>
<DT id="8"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="9"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="10"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="11"><A HREF="#lbAF">VERSION</A><DD>
<DT id="12"><A HREF="#lbAG">COPYRIGHT</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:06:12 GMT, March 31, 2021
</BODY>
</HTML>