PageRenderTime 52ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/share/doc/binutils.html/windmc.html

https://gitlab.com/infected_/linaro_aarch64-linux-gnu-4.9.x
HTML | 247 lines | 193 code | 18 blank | 36 comment | 0 complexity | 9770180b5cffef98180cefdc583ef74a MD5 | raw file
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1991-2013 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3
  6. or any later version published by the Free Software Foundation;
  7. with no Invariant Sections, with no Front-Cover Texts, and with no
  8. Back-Cover Texts. A copy of the license is included in the
  9. section entitled "GNU Free Documentation License".
  10. -->
  11. <!-- Created by GNU Texinfo 5.2, http://www.gnu.org/software/texinfo/ -->
  12. <head>
  13. <title>GNU Binary Utilities: windmc</title>
  14. <meta name="description" content="GNU Binary Utilities: windmc">
  15. <meta name="keywords" content="GNU Binary Utilities: windmc">
  16. <meta name="resource-type" content="document">
  17. <meta name="distribution" content="global">
  18. <meta name="Generator" content="makeinfo">
  19. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  20. <link href="index.html#Top" rel="start" title="Top">
  21. <link href="Binutils-Index.html#Binutils-Index" rel="index" title="Binutils Index">
  22. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  23. <link href="index.html#Top" rel="up" title="Top">
  24. <link href="windres.html#windres" rel="next" title="windres">
  25. <link href="nlmconv.html#nlmconv" rel="prev" title="nlmconv">
  26. <style type="text/css">
  27. <!--
  28. a.summary-letter {text-decoration: none}
  29. blockquote.smallquotation {font-size: smaller}
  30. div.display {margin-left: 3.2em}
  31. div.example {margin-left: 3.2em}
  32. div.indentedblock {margin-left: 3.2em}
  33. div.lisp {margin-left: 3.2em}
  34. div.smalldisplay {margin-left: 3.2em}
  35. div.smallexample {margin-left: 3.2em}
  36. div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
  37. div.smalllisp {margin-left: 3.2em}
  38. kbd {font-style:oblique}
  39. pre.display {font-family: inherit}
  40. pre.format {font-family: inherit}
  41. pre.menu-comment {font-family: serif}
  42. pre.menu-preformatted {font-family: serif}
  43. pre.smalldisplay {font-family: inherit; font-size: smaller}
  44. pre.smallexample {font-size: smaller}
  45. pre.smallformat {font-family: inherit; font-size: smaller}
  46. pre.smalllisp {font-size: smaller}
  47. span.nocodebreak {white-space:nowrap}
  48. span.nolinebreak {white-space:nowrap}
  49. span.roman {font-family:serif; font-weight:normal}
  50. span.sansserif {font-family:sans-serif; font-weight:normal}
  51. ul.no-bullet {list-style: none}
  52. -->
  53. </style>
  54. </head>
  55. <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  56. <a name="windmc"></a>
  57. <div class="header">
  58. <p>
  59. Next: <a href="windres.html#windres" accesskey="n" rel="next">windres</a>, Previous: <a href="nlmconv.html#nlmconv" accesskey="p" rel="prev">nlmconv</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Binutils-Index.html#Binutils-Index" title="Index" rel="index">Index</a>]</p>
  60. </div>
  61. <hr>
  62. <a name="windmc-1"></a>
  63. <h2 class="chapter">12 windmc</h2>
  64. <p><code>windmc</code> may be used to generator Windows message resources.
  65. </p>
  66. <blockquote>
  67. <p><em>Warning:</em> <code>windmc</code> is not always built as part of the binary
  68. utilities, since it is only useful for Windows targets.
  69. </p></blockquote>
  70. <div class="smallexample">
  71. <pre class="smallexample">windmc [options] input-file
  72. </pre></div>
  73. <p><code>windmc</code> reads message definitions from an input file (.mc) and
  74. translate them into a set of output files. The output files may be of
  75. four kinds:
  76. </p>
  77. <dl compact="compact">
  78. <dt><code>h</code></dt>
  79. <dd><p>A C header file containing the message definitions.
  80. </p>
  81. </dd>
  82. <dt><code>rc</code></dt>
  83. <dd><p>A resource file compilable by the <code>windres</code> tool.
  84. </p>
  85. </dd>
  86. <dt><code>bin</code></dt>
  87. <dd><p>One or more binary files containing the resource data for a specific
  88. message language.
  89. </p>
  90. </dd>
  91. <dt><code>dbg</code></dt>
  92. <dd><p>A C include file that maps message id&rsquo;s to their symbolic name.
  93. </p></dd>
  94. </dl>
  95. <p>The exact description of these different formats is available in
  96. documentation from Microsoft.
  97. </p>
  98. <p>When <code>windmc</code> converts from the <code>mc</code> format to the <code>bin</code>
  99. format, <code>rc</code>, <code>h</code>, and optional <code>dbg</code> it is acting like the
  100. Windows Message Compiler.
  101. </p>
  102. <dl compact="compact">
  103. <dt><code>-a</code></dt>
  104. <dt><code>--ascii_in</code></dt>
  105. <dd><p>Specifies that the input file specified is ASCII. This is the default
  106. behaviour.
  107. </p>
  108. </dd>
  109. <dt><code>-A</code></dt>
  110. <dt><code>--ascii_out</code></dt>
  111. <dd><p>Specifies that messages in the output <code>bin</code> files should be in ASCII
  112. format.
  113. </p>
  114. </dd>
  115. <dt><code>-b</code></dt>
  116. <dt><code>--binprefix</code></dt>
  117. <dd><p>Specifies that <code>bin</code> filenames should have to be prefixed by the
  118. basename of the source file.
  119. </p>
  120. </dd>
  121. <dt><code>-c</code></dt>
  122. <dt><code>--customflag</code></dt>
  123. <dd><p>Sets the customer bit in all message id&rsquo;s.
  124. </p>
  125. </dd>
  126. <dt><code>-C <var>codepage</var></code></dt>
  127. <dt><code>--codepage_in <var>codepage</var></code></dt>
  128. <dd><p>Sets the default codepage to be used to convert input file to UTF16. The
  129. default is ocdepage 1252.
  130. </p>
  131. </dd>
  132. <dt><code>-d</code></dt>
  133. <dt><code>--decimal_values</code></dt>
  134. <dd><p>Outputs the constants in the header file in decimal. Default is using
  135. hexadecimal output.
  136. </p>
  137. </dd>
  138. <dt><code>-e <var>ext</var></code></dt>
  139. <dt><code>--extension <var>ext</var></code></dt>
  140. <dd><p>The extension for the header file. The default is .h extension.
  141. </p>
  142. </dd>
  143. <dt><code>-F <var>target</var></code></dt>
  144. <dt><code>--target <var>target</var></code></dt>
  145. <dd><p>Specify the BFD format to use for a bin file as output. This
  146. is a BFD target name; you can use the <samp>--help</samp> option to see a list
  147. of supported targets. Normally <code>windmc</code> will use the default
  148. format, which is the first one listed by the <samp>--help</samp> option.
  149. <a href="Target-Selection.html#Target-Selection">Target Selection</a>.
  150. </p>
  151. </dd>
  152. <dt><code>-h <var>path</var></code></dt>
  153. <dt><code>--headerdir <var>path</var></code></dt>
  154. <dd><p>The target directory of the generated header file. The default is the
  155. current directory.
  156. </p>
  157. </dd>
  158. <dt><code>-H</code></dt>
  159. <dt><code>--help</code></dt>
  160. <dd><p>Displays a list of command line options and then exits.
  161. </p>
  162. </dd>
  163. <dt><code>-m <var>characters</var></code></dt>
  164. <dt><code>--maxlength <var>characters</var></code></dt>
  165. <dd><p>Instructs <code>windmc</code> to generate a warning if the length
  166. of any message exceeds the number specified.
  167. </p>
  168. </dd>
  169. <dt><code>-n</code></dt>
  170. <dt><code>--nullterminate</code></dt>
  171. <dd><p>Terminate message text in <code>bin</code> files by zero. By default they are
  172. terminated by CR/LF.
  173. </p>
  174. </dd>
  175. <dt><code>-o</code></dt>
  176. <dt><code>--hresult_use</code></dt>
  177. <dd><p>Not yet implemented. Instructs <code>windmc</code> to generate an OLE2 header
  178. file, using HRESULT definitions. Status codes are used if the flag is not
  179. specified.
  180. </p>
  181. </dd>
  182. <dt><code>-O <var>codepage</var></code></dt>
  183. <dt><code>--codepage_out <var>codepage</var></code></dt>
  184. <dd><p>Sets the default codepage to be used to output text files. The default
  185. is ocdepage 1252.
  186. </p>
  187. </dd>
  188. <dt><code>-r <var>path</var></code></dt>
  189. <dt><code>--rcdir <var>path</var></code></dt>
  190. <dd><p>The target directory for the generated <code>rc</code> script and the generated
  191. <code>bin</code> files that the resource compiler script includes. The default
  192. is the current directory.
  193. </p>
  194. </dd>
  195. <dt><code>-u</code></dt>
  196. <dt><code>--unicode_in</code></dt>
  197. <dd><p>Specifies that the input file is UTF16.
  198. </p>
  199. </dd>
  200. <dt><code>-U</code></dt>
  201. <dt><code>--unicode_out</code></dt>
  202. <dd><p>Specifies that messages in the output <code>bin</code> file should be in UTF16
  203. format. This is the default behaviour.
  204. </p>
  205. </dd>
  206. <dt><code>-v</code></dt>
  207. <dt><code>--verbose</code></dt>
  208. <dd><p>Enable verbose mode.
  209. </p>
  210. </dd>
  211. <dt><code>-V</code></dt>
  212. <dt><code>--version</code></dt>
  213. <dd><p>Prints the version number for <code>windmc</code>.
  214. </p>
  215. </dd>
  216. <dt><code>-x <var>path</var></code></dt>
  217. <dt><code>--xdgb <var>path</var></code></dt>
  218. <dd><p>The path of the <code>dbg</code> C include file that maps message id&rsquo;s to the
  219. symbolic name. No such file is generated without specifying the switch.
  220. </p></dd>
  221. </dl>
  222. <hr>
  223. <div class="header">
  224. <p>
  225. Next: <a href="windres.html#windres" accesskey="n" rel="next">windres</a>, Previous: <a href="nlmconv.html#nlmconv" accesskey="p" rel="prev">nlmconv</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Binutils-Index.html#Binutils-Index" title="Index" rel="index">Index</a>]</p>
  226. </div>
  227. </body>
  228. </html>