element_target.html 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <title>/cprj/target</title>
  7. <title>CMSIS-Build: /cprj/target</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <link href="cmsis.css" rel="stylesheet" type="text/css" />
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <script type="text/javascript" src="printComponentTabs.js"></script>
  13. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  14. <script type="text/javascript" src="resize.js"></script>
  15. <script type="text/javascript" src="navtree.js"></script>
  16. <script type="text/javascript">
  17. $(document).ready(initResizable);
  18. $(window).load(resizeHeight);
  19. </script>
  20. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  21. <script type="text/javascript" src="search/search.js"></script>
  22. <script type="text/javascript">
  23. $(document).ready(function() { searchBox.OnSelectItem(0); });
  24. </script>
  25. </head>
  26. <body>
  27. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  28. <div id="titlearea">
  29. <table cellspacing="0" cellpadding="0">
  30. <tbody>
  31. <tr style="height: 46px;">
  32. <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td>
  33. <td style="padding-left: 0.5em;">
  34. <div id="projectname">CMSIS-Build
  35. &#160;<span id="projectnumber">Version 0.9.0 (beta)</span>
  36. </div>
  37. <div id="projectbrief">Tools, software frameworks, and work flows for productivity with CMSIS based projects</div>
  38. </td>
  39. </tr>
  40. </tbody>
  41. </table>
  42. </div>
  43. <!-- end header part -->
  44. <div id="CMSISnav" class="tabs1">
  45. <ul class="tablist">
  46. <script type="text/javascript">
  47. <!--
  48. writeComponentTabs.call(this);
  49. //-->
  50. </script>
  51. </ul>
  52. </div>
  53. <!-- Generated by Doxygen 1.8.6 -->
  54. <script type="text/javascript">
  55. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  56. </script>
  57. <div id="navrow1" class="tabs">
  58. <ul class="tablist">
  59. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  60. <li class="current"><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li>
  61. <li>
  62. <div id="MSearchBox" class="MSearchBoxInactive">
  63. <span class="left">
  64. <img id="MSearchSelect" src="search/mag_sel.png"
  65. onmouseover="return searchBox.OnSearchSelectShow()"
  66. onmouseout="return searchBox.OnSearchSelectHide()"
  67. alt=""/>
  68. <input type="text" id="MSearchField" value="Search" accesskey="S"
  69. onfocus="searchBox.OnSearchFieldFocus(true)"
  70. onblur="searchBox.OnSearchFieldFocus(false)"
  71. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  72. </span><span class="right">
  73. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  74. </span>
  75. </div>
  76. </li>
  77. </ul>
  78. </div>
  79. </div><!-- top -->
  80. <div id="side-nav" class="ui-resizable side-nav-resizable">
  81. <div id="nav-tree">
  82. <div id="nav-tree-contents">
  83. <div id="nav-sync" class="sync"></div>
  84. </div>
  85. </div>
  86. <div id="splitbar" style="-moz-user-select:none;"
  87. class="ui-resizable-handle">
  88. </div>
  89. </div>
  90. <script type="text/javascript">
  91. $(document).ready(function(){initNavTree('element_target.html','');});
  92. </script>
  93. <div id="doc-content">
  94. <!-- window showing the filter options -->
  95. <div id="MSearchSelectWindow"
  96. onmouseover="return searchBox.OnSearchSelectShow()"
  97. onmouseout="return searchBox.OnSearchSelectHide()"
  98. onkeydown="return searchBox.OnSearchSelectKey(event)">
  99. <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Pages</a></div>
  100. <!-- iframe showing the search results (closed by default) -->
  101. <div id="MSearchResultsWindow">
  102. <iframe src="javascript:void(0)" frameborder="0"
  103. name="MSearchResults" id="MSearchResults">
  104. </iframe>
  105. </div>
  106. <div class="header">
  107. <div class="headertitle">
  108. <div class="title">/cprj/target </div> </div>
  109. </div><!--header-->
  110. <div class="contents">
  111. <div class="textblock"><p>This element describes the hardware target, build output and command line options for a specific compiler tool-chain. These settings are applied to all modules of the project. The C/C++ and assembler flags can be refined for components, files. The following elements are available:</p>
  112. <ul>
  113. <li><a class="el" href="element_target.html#element_output">output</a> : Build output options</li>
  114. <li><a class="el" href="element_target.html#element_target_cflags">cflags</a> : C compiler options applied to C modules (category="sourceC").</li>
  115. <li><a class="el" href="element_target.html#element_target_cxxflags">cxxflags</a> : C++ compiler options applied to C++ modules (category="sourceCpp").</li>
  116. <li><a class="el" href="element_target.html#element_target_asflags">asflags</a> : Assembler options applied to Assembler modules (category="sourceAsm").</li>
  117. <li><a class="el" href="element_target.html#element_ldflags">ldflags</a> : Linker options applied when output attribute type="exe".</li>
  118. <li><a class="el" href="element_target.html#element_arflags">arflags</a> : Archiver options applied to Librarian when output attribute type="lib".</li>
  119. </ul>
  120. <p>Note: The compiler referenced by the above command line flags is required to be listed in the &lt;compilers&gt; section.</p>
  121. <p><b>Example</b> <em>target</em> section:</p>
  122. <div class="fragment"><div class="line">&lt;cprj xmlns:xsi=<span class="stringliteral">&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</span> xsi:noNamespaceSchemaLocation=<span class="stringliteral">&quot;CPRJ.xsd&quot;</span>/&gt;</div>
  123. <div class="line"> ...</div>
  124. <div class="line"> &lt;compilers&gt;</div>
  125. <div class="line"> &lt;compiler name=<span class="stringliteral">&quot;AC5&quot;</span> version=<span class="stringliteral">&quot;5.6.0&quot;</span></div>
  126. <div class="line"> &lt;/compilers&gt;</div>
  127. <div class="line"> ...</div>
  128. <div class="line"> &lt;target Dname=<span class="stringliteral">&quot;ARMCM0&quot;</span> Dvendor=<span class="stringliteral">&quot;ARM:82&quot;</span> Dendian=<span class="stringliteral">&quot;Little-endian&quot;</span>&gt;</div>
  129. <div class="line"> &lt;output name=<span class="stringliteral">&quot;Blinky&quot;</span> type=<span class="stringliteral">&quot;exe&quot;</span> obj=<span class="stringliteral">&quot;./Objects list=&quot;</span>./Listings<span class="stringliteral">&quot;/&gt;</span></div>
  130. <div class="line"><span class="stringliteral"> &lt;cflags compiler=&quot;</span>AC5<span class="stringliteral">&quot; add=&quot;</span>-Osize<span class="stringliteral">&quot;/&gt;</span></div>
  131. <div class="line"><span class="stringliteral"> ...</span></div>
  132. <div class="line"><span class="stringliteral"> &lt;ldflags compiler=&quot;</span>AC5<span class="stringliteral">&quot; file=&quot;</span>./RTE/Device/ARMCM0/gcc_arm.ld<span class="stringliteral">&quot;/&gt;</span></div>
  133. <div class="line"><span class="stringliteral"> &lt;/target&gt;</span></div>
  134. <div class="line"><span class="stringliteral"> ...</span></div>
  135. <div class="line"><span class="stringliteral">&lt;/cprj&gt;</span></div>
  136. </div><!-- fragment --><p> <br/>
  137. </p>
  138. <table class="cmtable" summary="Element: target">
  139. <tr>
  140. <th>Parents </th><th colspan="3">Element Chain </th></tr>
  141. <tr>
  142. <td><a class="el" href="element_cprj.html">cprj</a> </td><td colspan="3"><a class="el" href="element_cprj.html">/cprj</a> </td></tr>
  143. <tr>
  144. <th>Attributes </th><th>Description </th><th>Type </th><th>Use </th></tr>
  145. <tr>
  146. <td>Bvendor </td><td>Board vendor name. Either a board vendor and board name with optional board revision, or a device vendor and a device name. </td><td>xs:string </td><td>optional </td></tr>
  147. <tr>
  148. <td>Bname </td><td>SPecify the board name. Either a board vendor and board name with optional board revision, or a device vendor and a device name. </td><td>xs:string </td><td>optional </td></tr>
  149. <tr>
  150. <td>Bversion </td><td>Board version. Either a board vendor and board name with optional board revision, or a device vendor and a device name. </td><td>xs:string </td><td>optional </td></tr>
  151. <tr>
  152. <td>Dvendor </td><td>Device vendor name. Either a board vendor and board name with optional board revision, or a device vendor and a device name. </td><td>xs:string </td><td>optional </td></tr>
  153. <tr>
  154. <td>Dname </td><td>Device name. Either a board vendor and board name with optional board revision, or a device vendor and a device name. </td><td>xs:string </td><td>optional </td></tr>
  155. <tr>
  156. <td>Pname </td><td>Processor instance name. In case of multi-processor devices, this processor ID is required. </td><td>xs:string </td><td>optional </td></tr>
  157. <tr>
  158. <td>Dfpu </td><td>Selects the floating point unit option that is active for the project. <b>Note</b>, even if the device implements an FPU, setting <span class="XML-Token">Dfpu=0</span> here, will disable FPU code generation. Use predefined values from the table <a class="el" href="cprj_types.html#DfpuEnum">Device FPU</a>. </td><td>DfpuEnum </td><td>optional </td></tr>
  159. <tr>
  160. <td>Dendian </td><td>Selects the endianness to be used for the project. Note that selecting an endianness that is not supported by the device, will result in a build that will not run on the device. Use predefined values from the table <a class="el" href="cprj_types.html#DendianEnum">DendianEnum</a>. </td><td>DendianEnum </td><td>optional </td></tr>
  161. <tr>
  162. <td>Dmpu </td><td>Selects the memory protection unit to be enabled or disabled for the project. Use predefined values from the table <a class="el" href="cprj_types.html#DmpuEnum">Device MPU</a>. </td><td>DmpuEnum </td><td>optional </td></tr>
  163. <tr>
  164. <td>Dsecure </td><td>Selects the software model for code generation on arm TrustZone-M enabled devices. Use predefined values from the table <a class="el" href="cprj_types.html#DsecureEnum">Dsecure</a> </td><td>DsecureEnum </td><td>optional </td></tr>
  165. <tr>
  166. <td>Dmve </td><td>Selects the code generation to utilize the Corex-M Vector Extensions (MVE) on devices with this features Use predefined values from the table <a class="el" href="cprj_types.html#DmveEnum">Dmve</a> </td><td>DmveEnum </td><td>optional </td></tr>
  167. <tr>
  168. <th>Child Elements </th><th>Description </th><th>Type </th><th>Occurrence </th></tr>
  169. <tr>
  170. <td><a class="el" href="element_target.html#element_output">output</a> </td><td>Configure the build output name and type, and specify whether to include debug information. Required if type="exe". </td><td>OutputType </td><td>1..1 </td></tr>
  171. <tr>
  172. <td><a class="el" href="element_target.html#element_ldflags">ldflags</a> </td><td>Linker flags used for constructing the effective linker command line </td><td>LinkerFlagsType </td><td>0..1 </td></tr>
  173. <tr>
  174. <td><a class="el" href="element_target.html#element_arflags">arflags</a> </td><td>Archiver command line flags for the toolchain selected by 'compiler' attribute. </td><td>ArchiverFlagsType </td><td>0..1 </td></tr>
  175. <tr>
  176. <td><a class="el" href="cprj_types.html#type_toolOptionType">cflags</a> </td><td>Compiler flags for C-modules used for constructing the effective compiler command line </td><td>ToolOptionType </td><td>0..1 </td></tr>
  177. <tr>
  178. <td><a class="el" href="cprj_types.html#type_toolOptionType">cxxflags</a> </td><td>Compiler flags for C++ modules used for constructing the effective compiler command line </td><td>ToolOptionType </td><td>0..1 </td></tr>
  179. <tr>
  180. <td><a class="el" href="cprj_types.html#type_toolOptionType">asflags</a> </td><td>Assembler flags for assembler modules used for constructing the effective assembler command line </td><td>ToolOptionType </td><td>0..1 </td></tr>
  181. <tr>
  182. <td><a class="el" href="cprj_types.html#type_toolOptionType">arflags</a> </td><td>Archiver flags for the archiver which creates library files. Constructing the effective assembler command line </td><td>ToolOptionType </td><td>0..1 </td></tr>
  183. </table>
  184. <p>&#160;</p>
  185. <hr/>
  186. <h1><a class="anchor" id="element_output"></a>
  187. /cprj/target/output</h1>
  188. <p>Specify the build output directories, output file and type (executable vs. library).</p>
  189. <p><b>Example</b> <em>output</em> element </p>
  190. <div class="fragment"><div class="line">&lt;cprj ...&gt;</div>
  191. <div class="line"> ...</div>
  192. <div class="line"> &lt;target Dname=<span class="stringliteral">&quot;ARMCM0&quot;</span> Dvendor=<span class="stringliteral">&quot;ARM:83&quot;</span>&gt;</div>
  193. <div class="line"> &lt;output compiler=<span class="stringliteral">&quot;AC5&quot;</span> name=<span class="stringliteral">&quot;MyProject&quot;</span> type=<span class="stringliteral">&quot;exe&quot;</span> list=<span class="stringliteral">&quot;Listings&quot;</span> obj=<span class="stringliteral">&quot;Objects&quot;</span>/&gt;</div>
  194. <div class="line"> ...</div>
  195. <div class="line"> &lt;/target&gt;</div>
  196. <div class="line"> ...</div>
  197. <div class="line">&lt;/cprj&gt;</div>
  198. </div><!-- fragment --><p><br/>
  199. </p>
  200. <table class="cmtable" summary="Element: output">
  201. <tr>
  202. <th>Parents </th><th colspan="3">Element Chain </th></tr>
  203. <tr>
  204. <td><a class="el" href="element_target.html">/cprj/target</a> target </td><td colspan="3"><a class="el" href="element_target.html">/cprj/target</a> </td></tr>
  205. <tr>
  206. <th>Attributes </th><th>Description </th><th>Type </th><th>Use </th></tr>
  207. <tr>
  208. <td>name </td><td>Name of the build output file to be generated. </td><td>xs:string </td><td>required </td></tr>
  209. <tr>
  210. <td>type </td><td>Select the build target to be <span class="XML-Token">lib</span> - library or <span class="XML-Token">exe</span> - executable </td><td>CompilerOutputType </td><td>required </td></tr>
  211. <tr>
  212. <td>obj </td><td>Relative path of the output folder </td><td>xs:string </td><td>optional </td></tr>
  213. <tr>
  214. <td>listing </td><td>Relative path of the listings folder </td><td>xs:string </td><td>optional </td></tr>
  215. </table>
  216. <p>&#160;</p>
  217. <hr/>
  218. <h1><a class="anchor" id="element_ldflags"></a>
  219. /cprj/target/ldflags</h1>
  220. <p>This element specifies strings of commandline options for the linker of the tool-chain selected by the attribute 'compiler'. A linker script file shall be specified using the attribute 'file'. Note that this option only takes effect if the type specified in the output tag is set to "exe".</p>
  221. <p><b>Example</b> <em>ldflags</em> element </p>
  222. <div class="fragment"><div class="line">&lt;cprj ...&gt;</div>
  223. <div class="line"> ...</div>
  224. <div class="line"> &lt;target Ddsp=<span class="stringliteral">&quot;NO_DSP&quot;</span> Dendian=<span class="stringliteral">&quot;Little-endian&quot;</span> Dfpu=<span class="stringliteral">&quot;NO_FPU&quot;</span> Dmve=<span class="stringliteral">&quot;NO_MVE&quot;</span> Dname=<span class="stringliteral">&quot;LPC4357&quot;</span> Dtz=<span class="stringliteral">&quot;NO_TZ&quot;</span> Dvendor=<span class="stringliteral">&quot;NXP:11&quot;</span> Pname=<span class="stringliteral">&quot;Cortex-M4&quot;</span>&gt;</div>
  225. <div class="line"> &lt;output list=<span class="stringliteral">&quot;./Debug/&quot;</span> name=<span class="stringliteral">&quot;BSD_Client&quot;</span> obj=<span class="stringliteral">&quot;./Debug/&quot;</span> type=<span class="stringliteral">&quot;exe&quot;</span>/&gt;</div>
  226. <div class="line"> &lt;ldflags compiler=<span class="stringliteral">&quot;AC5&quot;</span> add=<span class="stringliteral">&quot;--entry=Reset_Handler --load_addr_map_info --map --strict &quot;</span> file=<span class="stringliteral">&quot;BSD_Client.sct&quot;</span>/&gt;</div>
  227. <div class="line"> &lt;/target&gt;</div>
  228. <div class="line"> ...</div>
  229. <div class="line">&lt;/cprj&gt;</div>
  230. </div><!-- fragment --><table class="cmtable" summary="Element: ldflags">
  231. <tr>
  232. <th>Parents </th><th colspan="3">Element Chain </th></tr>
  233. <tr>
  234. <td><a class="el" href="element_target.html">target</a> </td><td colspan="3"><a class="el" href="element_target.html">/cprj/target</a> </td></tr>
  235. <tr>
  236. <th>Attributes </th><th>Description </th><th>Type </th><th>Use </th></tr>
  237. <tr>
  238. <td>compiler </td><td>selects the compiler the contained information is targeted at. Choose from available list: GCC, AC5, AC6, IAR, Tasking, GHS, Cosmic, G++ </td><td>CompilerEnumType </td><td>required </td></tr>
  239. <tr>
  240. <td>add </td><td>commandline options to be added to the command line of the respective tool. </td><td>xs:string </td><td>optional </td></tr>
  241. </table>
  242. <p>&#160;</p>
  243. <hr/>
  244. <h1><a class="anchor" id="element_arflags"></a>
  245. /cprj/target/arflags</h1>
  246. <p>This element specifies a string of commandline options for the archiver of the tool-chain selected by the attribute 'compiler'. Note that this option only takes effect if the type specified in the output tag is set to "lib".</p>
  247. <p><b>Example</b> <em>arflags</em> element </p>
  248. <div class="fragment"><div class="line">&lt;cprj ...&gt;</div>
  249. <div class="line"> ...</div>
  250. <div class="line"> &lt;target Ddsp=<span class="stringliteral">&quot;NO_DSP&quot;</span> Dendian=<span class="stringliteral">&quot;Little-endian&quot;</span> Dfpu=<span class="stringliteral">&quot;NO_FPU&quot;</span> Dmve=<span class="stringliteral">&quot;NO_MVE&quot;</span> Dname=<span class="stringliteral">&quot;LPC4357&quot;</span> Dtz=<span class="stringliteral">&quot;NO_TZ&quot;</span> Dvendor=<span class="stringliteral">&quot;NXP:11&quot;</span> Pname=<span class="stringliteral">&quot;Cortex-M4&quot;</span>&gt;</div>
  251. <div class="line"> &lt;output list=<span class="stringliteral">&quot;./Debug/&quot;</span> name=<span class="stringliteral">&quot;BSD_Client&quot;</span> obj=<span class="stringliteral">&quot;./Debug/&quot;</span> type=<span class="stringliteral">&quot;lib&quot;</span>/&gt;</div>
  252. <div class="line"> &lt;arflags compiler=<span class="stringliteral">&quot;AC5&quot;</span> add=<span class="stringliteral">&quot;--debug_symbols &quot;</span>/&gt;</div>
  253. <div class="line"> &lt;/target&gt;</div>
  254. <div class="line"> ...</div>
  255. <div class="line">&lt;/cprj&gt;</div>
  256. </div><!-- fragment --><table class="cmtable" summary="Element: arflags">
  257. <tr>
  258. <th>Parents </th><th colspan="3">Element Chain </th></tr>
  259. <tr>
  260. <td><a class="el" href="element_target.html">target</a> </td><td colspan="3"><a class="el" href="element_target.html">/cprj/target</a> </td></tr>
  261. <tr>
  262. <th>Attributes </th><th>Description </th><th>Type </th><th>Use </th></tr>
  263. <tr>
  264. <td>compiler </td><td>selects the compiler the command line option string is targeted at. Choose from available list: GCC, AC5, AC6, IAR, Tasking, GHS, Cosmic, G++ </td><td>CompilerEnumType </td><td>required </td></tr>
  265. <tr>
  266. <td>add </td><td>commandline string to be added to the command line of the archiver of the selected compiler tool-chain. </td><td>xs:string </td><td>required </td></tr>
  267. </table>
  268. <p>&#160;</p>
  269. <hr/>
  270. <h1><a class="anchor" id="element_target_cflags"></a>
  271. /cprj/target/cflags</h1>
  272. <p>These additional compiler options affect all C modules contained in the project description unless particular settings are 'removed' on a lower level (component, group, file).</p>
  273. <p><b>Example</b> <em>cflags</em> element </p>
  274. <div class="fragment"><div class="line">&lt;cprj ...&gt;</div>
  275. <div class="line"> ...</div>
  276. <div class="line"> &lt;target Ddsp=<span class="stringliteral">&quot;NO_DSP&quot;</span> Dendian=<span class="stringliteral">&quot;Little-endian&quot;</span> Dfpu=<span class="stringliteral">&quot;NO_FPU&quot;</span> Dmve=<span class="stringliteral">&quot;NO_MVE&quot;</span> Dname=<span class="stringliteral">&quot;LPC4357&quot;</span> Dtz=<span class="stringliteral">&quot;NO_TZ&quot;</span> Dvendor=<span class="stringliteral">&quot;NXP:11&quot;</span> Pname=<span class="stringliteral">&quot;Cortex-M4&quot;</span>&gt;</div>
  277. <div class="line"> &lt;output list=<span class="stringliteral">&quot;./Debug/&quot;</span> name=<span class="stringliteral">&quot;BSD_Client&quot;</span> obj=<span class="stringliteral">&quot;./Debug/&quot;</span> type=<span class="stringliteral">&quot;lib&quot;</span>/&gt;</div>
  278. <div class="line"> &lt;cflags add=<span class="stringliteral">&quot;-O1 -fno-function-sections -fno-rtti -fshort-enums -fshort-wchar -funsigned-char&quot;</span>/&gt;</div>
  279. <div class="line"> &lt;arflags compiler=<span class="stringliteral">&quot;AC5&quot;</span> add=<span class="stringliteral">&quot;--debug_symbols &quot;</span>/&gt;</div>
  280. <div class="line"> &lt;/target&gt;</div>
  281. <div class="line"> ...</div>
  282. <div class="line">&lt;/cprj&gt;</div>
  283. </div><!-- fragment --><table class="cmtable" summary="Element: cflags">
  284. <tr>
  285. <th>Parents </th><th colspan="3">Element Chain </th></tr>
  286. <tr>
  287. <td><a class="el" href="element_target.html">target</a> </td><td colspan="3"><a class="el" href="element_target.html">/cprj/target</a> </td></tr>
  288. <tr>
  289. <th>Attributes </th><th>Description </th><th>Type </th><th>Use </th></tr>
  290. <tr>
  291. <td>compiler </td><td>selects the compiler the command line option string is targeted at. Choose from available list: GCC, AC5, AC6, IAR, Tasking, GHS, Cosmic, G++ </td><td>CompilerEnumType </td><td>required </td></tr>
  292. <tr>
  293. <td>add </td><td>commandline string to be added to the command line of the compiler invoked for C-modules specific the selected compiler tool-chain. </td><td>xs:string </td><td>required </td></tr>
  294. </table>
  295. <p>&#160;</p>
  296. <hr/>
  297. <h1><a class="anchor" id="element_target_cxxflags"></a>
  298. /cprj/target/cxxflags</h1>
  299. <p>These additional compiler options affect all C++ modules contained in the project description unless particular settings are 'removed' on a lower level (component, group, file).</p>
  300. <p><b>Example</b> <em>cxxflags</em> element </p>
  301. <div class="fragment"><div class="line">&lt;cprj ...&gt;</div>
  302. <div class="line"> ...</div>
  303. <div class="line"> &lt;target Ddsp=<span class="stringliteral">&quot;NO_DSP&quot;</span> Dendian=<span class="stringliteral">&quot;Little-endian&quot;</span> Dfpu=<span class="stringliteral">&quot;NO_FPU&quot;</span> Dmve=<span class="stringliteral">&quot;NO_MVE&quot;</span> Dname=<span class="stringliteral">&quot;LPC4357&quot;</span> Dtz=<span class="stringliteral">&quot;NO_TZ&quot;</span> Dvendor=<span class="stringliteral">&quot;NXP:11&quot;</span> Pname=<span class="stringliteral">&quot;Cortex-M4&quot;</span>&gt;</div>
  304. <div class="line"> &lt;output list=<span class="stringliteral">&quot;./Debug/&quot;</span> name=<span class="stringliteral">&quot;BSD_Client&quot;</span> obj=<span class="stringliteral">&quot;./Debug/&quot;</span> type=<span class="stringliteral">&quot;lib&quot;</span>/&gt;</div>
  305. <div class="line"> &lt;cflags add=<span class="stringliteral">&quot;-O1 -fno-function-sections -fno-rtti -fshort-enums -fshort-wchar -funsigned-char&quot;</span>/&gt;</div>
  306. <div class="line"> &lt;cxxflags add=<span class="stringliteral">&quot;-O1 -fno-function-sections -fno-rtti -fshort-enums -fshort-wchar -funsigned-char&quot;</span>/&gt;</div>
  307. <div class="line"> &lt;arflags compiler=<span class="stringliteral">&quot;AC5&quot;</span> add=<span class="stringliteral">&quot;--debug_symbols &quot;</span>/&gt;</div>
  308. <div class="line"> &lt;/target&gt;</div>
  309. <div class="line"> ...</div>
  310. <div class="line">&lt;/cprj&gt;</div>
  311. </div><!-- fragment --><table class="cmtable" summary="Element: cxxflags">
  312. <tr>
  313. <th>Parents </th><th colspan="3">Element Chain </th></tr>
  314. <tr>
  315. <td><a class="el" href="element_target.html">target</a> </td><td colspan="3"><a class="el" href="element_target.html">/cprj/target</a> </td></tr>
  316. <tr>
  317. <th>Attributes </th><th>Description </th><th>Type </th><th>Use </th></tr>
  318. <tr>
  319. <td>compiler </td><td>selects the compiler the command line option string is targeted at. Choose from available list: GCC, AC5, AC6, IAR, Tasking, GHS, Cosmic, G++ </td><td>CompilerEnumType </td><td>required </td></tr>
  320. <tr>
  321. <td>add </td><td>commandline string to be added to the command line of the compiler invoked for C++-modules specific the selected compiler tool-chain. </td><td>xs:string </td><td>required </td></tr>
  322. </table>
  323. <p>&#160;</p>
  324. <hr/>
  325. <h1><a class="anchor" id="element_target_asflags"></a>
  326. /cprj/target/asflags</h1>
  327. <p>These additional assembler options affect all Assembler modules contained in the project description unless particular settings are 'removed' on a lower level (component, group, file).</p>
  328. <p><b>Example</b> <em>asflags</em> element </p>
  329. <div class="fragment"><div class="line">&lt;cprj ...&gt;</div>
  330. <div class="line"> ...</div>
  331. <div class="line"> &lt;target Ddsp=<span class="stringliteral">&quot;NO_DSP&quot;</span> Dendian=<span class="stringliteral">&quot;Little-endian&quot;</span> Dfpu=<span class="stringliteral">&quot;NO_FPU&quot;</span> Dmve=<span class="stringliteral">&quot;NO_MVE&quot;</span> Dname=<span class="stringliteral">&quot;LPC4357&quot;</span> Dtz=<span class="stringliteral">&quot;NO_TZ&quot;</span> Dvendor=<span class="stringliteral">&quot;NXP:11&quot;</span> Pname=<span class="stringliteral">&quot;Cortex-M4&quot;</span>&gt;</div>
  332. <div class="line"> &lt;output list=<span class="stringliteral">&quot;./Debug/&quot;</span> name=<span class="stringliteral">&quot;BSD_Client&quot;</span> obj=<span class="stringliteral">&quot;./Debug/&quot;</span> type=<span class="stringliteral">&quot;lib&quot;</span>/&gt;</div>
  333. <div class="line"> &lt;asflags add=<span class="stringliteral">&quot;--xref --split_ldm&quot;</span>/&gt;</div>
  334. <div class="line"> &lt;arflags compiler=<span class="stringliteral">&quot;AC5&quot;</span> add=<span class="stringliteral">&quot;--debug_symbols &quot;</span>/&gt;</div>
  335. <div class="line"> &lt;/target&gt;</div>
  336. <div class="line"> ...</div>
  337. <div class="line">&lt;/cprj&gt;</div>
  338. </div><!-- fragment --><table class="cmtable" summary="Element: asflags">
  339. <tr>
  340. <th>Parents </th><th colspan="3">Element Chain </th></tr>
  341. <tr>
  342. <td><a class="el" href="element_target.html">target</a> </td><td colspan="3"><a class="el" href="element_target.html">/cprj/target</a> </td></tr>
  343. <tr>
  344. <th>Attributes </th><th>Description </th><th>Type </th><th>Use </th></tr>
  345. <tr>
  346. <td>compiler </td><td>selects the compiler the command line option string is targeted at. Choose from available list: GCC, AC5, AC6, IAR, Tasking, GHS, Cosmic, G++ </td><td>CompilerEnumType </td><td>required </td></tr>
  347. <tr>
  348. <td>add </td><td>commandline string to be added to the command line of the assembler invoked for Assembler-modules specific the selected compiler tool-chain. </td><td>xs:string </td><td>required </td></tr>
  349. </table>
  350. <p>&#160;</p>
  351. <hr/>
  352. </div></div><!-- contents -->
  353. </div><!-- doc-content -->
  354. <!-- start footer part -->
  355. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  356. <ul>
  357. <li class="navelem"><a class="el" href="cprjFormat_pg.html">Project Description (*.cprj) Format</a></li><li class="navelem"><a class="el" href="element_cprj.html">/cprj</a></li>
  358. <li class="footer">Generated on Thu Apr 9 2020 15:49:55 for CMSIS-Build Version 0.9.0 (beta) by Arm Ltd. All rights reserved.
  359. <!--
  360. <a href="http://www.doxygen.org/index.html">
  361. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6
  362. -->
  363. </li>
  364. </ul>
  365. </div>
  366. </body>
  367. </html>