Mercurial > molko
view doc/tool-bcc.rst @ 223:560303066120
tools: sync latest bcc
While here rename to mlk-bcc like other tools.
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 18 Nov 2020 19:09:23 +0100 |
parents | bf7169bb054d |
children |
line wrap: on
line source
============= Tool: mlk-bcc ============= This utility generates C byte array from any input file. Its main purpose is to allow embedding data directly into the executable without having to load files from disk. It reads the given file and generate the output to the standard output. Synopsis:: mlk-bcc [-0csu] [-I num] [-i num] filename variable Options and arguments: .. program:: mlk-bcc .. option:: -0 Terminate the array with a NUL terminator. .. option:: -c Generate a ``const`` C array. .. option:: -s Generate a ``static`` C array. .. option:: -u Use ``unsigned char`` instead of ``signed char`` when generating the byte array. .. option:: -I num Use ``num`` tabs to indent (defaults to 1). .. option:: -i num Use ``num`` spaces to indent. .. option:: filename Filename to read as input, a value of ``-`` will read the standard input. .. option:: variable The C variable to generate, any character that is not valid in C will be replaced by a ``_`` but the variable must still not start with a digit.