bcc - binary to C/C++ arrays converter

The bcc tools converts any input files into C or C++ byte arrays usable for embedding directly into the source code.

It is inspired by the xxd tool but offer some flexibility.


Official releases

Development version

You can install a development version using Mercurial

hg clone http://hg.malikania.fr/bcc


Build using standard POSIX make tools, see INSTALL.md for more details.

make install


See available manual pages:


Example: convert a image for embedding.

bcc -sc mario.png mario > mario.h

Now, you can include mario.h file and use mario C array, sizeof (mario) is also possible.