1bin2obj(1)             Binary to include file converter             bin2obj(1)
2
3
4

NAME

6       bin2obj - The Free Pascal binary to pascal include file converter.
7
8

SYNOPSIS

10       bin2obj [-aeouUz] -c constname infile
11
12

DESCRIPTION

14       bin2obj  reads a binary file and converts it to a pascal typed constant
15       declaration.  The constant is an array of bytes (zero based), in  which
16       each  byte  has  the value of the byte at the offset index in the file.
17       (index is the index in the array).
18
19

USAGE

21       bin2obj accepts a filename of a binary file, and needs the  name  of  a
22       constant  (use  the  -c  option). The output goes to standard output by
23       default. If no unitname is given, the output will be  in  the  form  of
24       code which can be written to an include file.
25
26

OPTIONS

28       bin2obj has a small number of options to control its behaviour:
29
30
31       -a     Write ASCII data instead of bytes. The constant array will be an
32              array of char instead of an array of bytes. The  bytes  will  be
33              written as ASCII constants.
34
35       -e key If  this  option  is  given, the data will be encrypted with key
36              which is a string of 8 characters long.
37
38       -h     emit a small helptext.
39
40       -o filename
41              By default, the output goes to standard output (the screen).  If
42              this  option  is  given, bin2obj will write the output to a file
43              with name filename instead. This option is mandatory if  the  -U
44              option is specified.
45
46       -u [unitname]
47              This  option  tells  bin2obj  to generate a unit. By default the
48              output is just the declaration of the constant. If the  unitname
49              is  not  specified, bin2obj tries to determine it from the input
50              filename.
51
52       -U [unitname]
53              The same as the -u option, only bin2obj will also call the  com‐
54              piler and compile the unit.
55
56       -z     Compress  the data before creating the unit. zlib compression is
57              used.
58
59

SEE ALSO

61              ppc386(1) data2inc(1)
62
63
64
65Free Pascal                    12 November 2004                     bin2obj(1)
Impressum