bin2obj.1 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. .TH bin2obj 1 "12 November 2004" "Free Pascal" "Binary to include file converter"
  2. .SH NAME
  3. bin2obj \- The Free Pascal binary to pascal include file converter.
  4. .SH SYNOPSIS
  5. .B bin2obj [-aeouUz] -c constname infile
  6. .SH DESCRIPTION
  7. .B bin2obj
  8. reads a binary file and converts it to a pascal typed constant declaration.
  9. The constant is an array of bytes (zero based), in which each byte has the
  10. value of the byte at the offset
  11. .I index
  12. in the file. (index is the index in the array).
  13. .SH USAGE
  14. .B bin2obj
  15. accepts a filename of a binary file, and needs the name of a constant
  16. (use the
  17. .B \-c
  18. option). The output goes to standard output by default. If no unitname is
  19. given, the output will be in the form of code which can be written to an
  20. include file.
  21. .SH OPTIONS
  22. bin2obj has a small number of options to control its behaviour:
  23. .TP
  24. .B \-a
  25. Write ASCII data instead of bytes. The constant array will be an array of
  26. char instead of an array of bytes. The bytes will be written as ASCII
  27. constants.
  28. .TP
  29. .B \-e key
  30. If this option is given, the data will be encrypted with
  31. .I key
  32. which is a string of 8 characters long.
  33. .TP
  34. .B \-h
  35. emit a small helptext.
  36. .TP
  37. .B \-o filename
  38. By default, the output goes to standard output (the screen). If this option is given,
  39. .B bin2obj
  40. will write the output to a file with name
  41. .I filename
  42. instead. This option is mandatory if the
  43. .B \-U
  44. option is specified.
  45. .TP
  46. .B \-u [unitname]
  47. This option tells
  48. .B bin2obj
  49. to generate a unit. By default the output is just the declaration of the
  50. constant. If the unitname is not specified,
  51. .B bin2obj
  52. tries to determine it from the input filename.
  53. .TP
  54. .B \-U [unitname]
  55. The same as the
  56. .B -u
  57. option, only bin2obj will also call the compiler and compile the unit.
  58. .TP
  59. .B \-z
  60. Compress the data before creating the unit. zlib compression is used.
  61. .SH SEE ALSO
  62. .IP
  63. .BR ppc386 (1)
  64. .BR data2inc (1)