# genccode - generate C or platform specific assembly code from an ... - man(8) - [phpMan]

[_GENCCODE_(8)](https://www.chedong.com/phpMan.php/man/GENCCODE/8/markdown)                                ICU 74.2 Manual                               [_GENCCODE_(8)](https://www.chedong.com/phpMan.php/man/GENCCODE/8/markdown)

## NAME
       **genccode **- generate C or platform specific assembly code from an ICU data file.

## SYNOPSIS
       **genccode  **[  **-h**,  **-?**,  **--help  **]  [ **-a**, **--assembly _**name_ ] [ **-d**, **--destdir _**destination_ ] [ **-n**,
       **--name _**name_ ] [ **-e**, **--entrypoint _**name_ ] [ **-f**, **--filename _**name_ ] [ _filename_ ...  ]

## DESCRIPTION
       **genccode **reads each of the supplied _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 _filename_, replacing dots by underscores, and adding a _.c_ file extension.

       If the **-a **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
       _.c_ file extension, a filename with a _.s_ will be written instead.

       If **genccode **is called with no _filename_ it terminates gracefully.

## OPTIONS
### -h -? --help
              Print help about usage and exit.

### -a --assembly _
              Output  assembly code instead of C code.  Use **-h **to see the list of available types of
              assembly to generate and to specify for this option.

### -d --destdir _
              Set the destination directory to _destination_.  The default  destination  directory  is
              the current directory.

### -n --name _
              Set  the  data name to _name_ instead of the default. This name is also used as the base
              name of the output. The default name is made of the _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 _b_ indicated big endian
              data, and the letter _l_ indicates little endian ones).

### -f --filename _
              Normally, an ICU data file such as mydata.icu will be turned into mydata_icu.c and my‐
              data_icu.o.  However, if this parameter was set to "somedata", the output  files  will
              be somedata.o and somedata.c, respectively.

### -e --entrypoint _
              Set  the data entry point (used for linking against the data in a shared library form)
              to _name_.  The default entry point name is made of the data (set by the **-n**, **--name  **op‐
              tion)  followed  by  an underscore and the type of the data (set by the **-t**, **--type **op‐
              tion).

## VERSION
       74.2

## COPYRIGHT
       Copyright (C) 2000-2004 IBM, Inc. and others.

ICU MANPAGE                                 11 March 2004                                [_GENCCODE_(8)](https://www.chedong.com/phpMan.php/man/GENCCODE/8/markdown)
