MSP430_15.12.3.LTS.xml 145 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127
  1. <?xml version="1.0" ?>
  2. <TOOLSET>
  3. <OPTIONXML version='7' config='target=msp' />
  4. <TOOL>
  5. <TAG>COMPILER</TAG>
  6. <TOOLNAME>C/C++ COMPILER</TOOLNAME>
  7. <DEFINITIONS>
  8. <OPTION tag='ABI'>
  9. <TYPE>simple</TYPE>
  10. <NAME>--abi</NAME>
  11. <HIDE_OPTION>true</HIDE_OPTION>
  12. <DEPRECATE_OPTION>
  13. <SEVERITY>3</SEVERITY>
  14. <DIAGNOSTIC>The &apos;--abi&apos; option is deprecated. The only setting is eabi (elf).</DIAGNOSTIC>
  15. </DEPRECATE_OPTION>
  16. <ARG>
  17. <TYPE>ONEOF</TYPE>
  18. <STATUS>required</STATUS>
  19. <DESCRIPTION>eabi,coffabi</DESCRIPTION>
  20. <ONEOF>eabi</ONEOF>
  21. <ONEOF>coffabi</ONEOF>
  22. <DEFAULT>eabi</DEFAULT>
  23. </ARG>
  24. <DEPRECATE_ARGUMENT tag='coffabi'>
  25. <SEVERITY>6</SEVERITY>
  26. <DIAGNOSTIC>As of version 15.3.0.STS of the MSP430 CGT, COFF ABI support is discontinued. If COFF ABI support is needed for your application, please use MSP430 CGT version 4.4.x.</DIAGNOSTIC>
  27. </DEPRECATE_ARGUMENT>
  28. <TIP>Application binary interface</TIP>
  29. <HELP>Specify the application binary interface. Default is eabi.</HELP>
  30. </OPTION>
  31. <OPTION tag='ABS_DIRECTORY'>
  32. <TYPE>cmdline</TYPE>
  33. <NAME>--abs_directory</NAME>
  34. <ALIAS>-fb</ALIAS>
  35. <ARG>
  36. <TYPE>STRING</TYPE>
  37. <STATUS>required</STATUS>
  38. <DESCRIPTION>dir</DESCRIPTION>
  39. </ARG>
  40. <TIP>Absolute listing directory (default is .obj dir)</TIP>
  41. <HELP>Absolute listing directory (default is .obj dir)</HELP>
  42. </OPTION>
  43. <OPTION tag='ABSOLUTE_LISTING'>
  44. <TYPE>cmdline</TYPE>
  45. <NAME>--absolute_listing</NAME>
  46. <ALIAS>-aa</ALIAS>
  47. <TIP>Generate absolute listing file</TIP>
  48. <HELP>Generate absolute listing file</HELP>
  49. </OPTION>
  50. <OPTION tag='ADVICE__HW_CONFIG'>
  51. <TYPE>simple</TYPE>
  52. <NAME>--advice:hw_config</NAME>
  53. <ARG>
  54. <TYPE>STRINGLIST</TYPE>
  55. <STATUS>optional</STATUS>
  56. <DESCRIPTION>RULE</DESCRIPTION>
  57. <DEFAULT>all</DEFAULT>
  58. </ARG>
  59. <TIP>Check hardware configuration settings for device.</TIP>
  60. <HELP>Check hardware configuration settings for device such as FRAM settings.</HELP>
  61. <METADATA type='rulelist'>
  62. &lt;body&gt;
  63. &lt;category id=&quot;1&quot; name=&quot;FRAM Configuration Settings&quot;&gt;
  64. &lt;rule id=&quot;1.1&quot; name=&quot;FRAM LockIO: For FRAM devices, at start up, the GPO power-on default high-impedance mode needs to be disabled to activate previously configured port settings. This can be done by clearing the LOCKLPM5 bit in PM5CTL0 register.&quot;/&gt;
  65. &lt;rule id=&quot;1.2&quot; name=&quot;FRAM wait states: For FRAM devices running at higher than 8MHz, FRAM waitstate needs to be configured accordingly.&quot;/&gt;
  66. &lt;/category&gt;
  67. &lt;/body&gt;
  68. </METADATA>
  69. </OPTION>
  70. <OPTION tag='ADVICE__HW_CONFIG_SEVERITY'>
  71. <TYPE>simple</TYPE>
  72. <NAME>--advice:hw_config_severity</NAME>
  73. <ARG>
  74. <TYPE>ONEOF</TYPE>
  75. <STATUS>required</STATUS>
  76. <DESCRIPTION>error,warning,remark,suppress</DESCRIPTION>
  77. <ONEOF>error</ONEOF>
  78. <ONEOF>warning</ONEOF>
  79. <ONEOF>remark</ONEOF>
  80. <ONEOF>suppress</ONEOF>
  81. </ARG>
  82. <TIP>Set error category for hardware configuration checks.</TIP>
  83. <HELP>Set error category for hardware configuration checks.</HELP>
  84. </OPTION>
  85. <OPTION tag='ADVICE__POWER'>
  86. <TYPE>simple</TYPE>
  87. <NAME>--advice:power</NAME>
  88. <ARG>
  89. <TYPE>STRINGLIST</TYPE>
  90. <STATUS>optional</STATUS>
  91. <DESCRIPTION>RULE</DESCRIPTION>
  92. <DEFAULT>all</DEFAULT>
  93. </ARG>
  94. <TIP>Enable checking of ULP power rules</TIP>
  95. <HELP>Enable validation of ULP power rules.</HELP>
  96. <METADATA type='rulelist'>
  97. &lt;body&gt;
  98. &lt;category id=&quot;1&quot; name=&quot;Low power mode (LPM) usage&quot;&gt;
  99. &lt;rule id=&quot;1.1&quot; name=&quot;Detected no uses of low power mode state changes using LPMx or _bis_SR_register() or __low_power_mode_x() during compilation.&quot;/&gt;
  100. &lt;/category&gt;
  101. &lt;category id=&quot;2&quot; name=&quot;Software (SW) delay&quot;&gt;
  102. &lt;rule id=&quot;2.1&quot; name=&quot;Detected SW delay loop. Recommend using a timer module instead&quot;/&gt;
  103. &lt;/category&gt;
  104. &lt;category id=&quot;3&quot; name=&quot;Flag polling&quot;&gt;
  105. &lt;rule id=&quot;3.1&quot; name=&quot;Detected flag polling. Recommend using an interrupt combined with enter LPMx and ISR.&quot;/&gt;
  106. &lt;/category&gt;
  107. &lt;category id=&quot;4&quot; name=&quot;Port initialization&quot;&gt;
  108. &lt;rule id=&quot;4.1&quot; name=&quot;Detected uninitialized Ports during compilation. Recommend setting PxDIR and PxOUT, or PxSEL, or PxSEL2&quot;/&gt;
  109. &lt;/category&gt;
  110. &lt;category id=&quot;5&quot; name=&quot;Processing/Power intensive operations&quot;&gt;
  111. &lt;rule id=&quot;5.1&quot; name=&quot;Detected division or modulus operation(s). Recommend moving them to RAM during run time or not using as these are processing/power intensive.&quot;/&gt;
  112. &lt;rule id=&quot;5.2&quot; name=&quot;Detected floating point operation(s). Recommend moving them to RAM during run time or not using as these are processing/power intensive.&quot;/&gt;
  113. &lt;rule id=&quot;5.3&quot; name=&quot;Detected (s)printf() calls. Recommend moving them to RAM during run time or not using as these are processing/power intensive.&quot;/&gt;
  114. &lt;/category&gt;
  115. &lt;category id=&quot;6&quot; name=&quot;Hardware multiplier&quot;&gt;
  116. &lt;rule id=&quot;6.1&quot; name=&quot;Detected use of multiplication on a device that has no hardware multiplier.&quot;/&gt;
  117. &lt;rule id=&quot;6.2&quot; name=&quot;Detected device with 32-bit multiplier. Recommend using MSPMATHLIB library (libmath.a).&quot;/&gt;
  118. &lt;/category&gt;
  119. &lt;category id=&quot;7&quot; name=&quot;Variable scope&quot;&gt;
  120. &lt;rule id=&quot;7.1&quot; name=&quot;Detected use of global variable within one function. Recommend placing variable in the function locally.&quot;/&gt;
  121. &lt;/category&gt;
  122. &lt;category id=&quot;8&quot; name=&quot;Constants&quot;&gt;
  123. &lt;rule id=&quot;8.1&quot; name=&quot;Variable is used as a constant. Recommend declaring variable as either &amp;quot;static const&amp;quot; or &amp;quot;const&amp;quot;&quot;/&gt;
  124. &lt;/category&gt;
  125. &lt;category id=&quot;9&quot; name=&quot;Function parameter&quot;&gt;
  126. &lt;rule id=&quot;9.1&quot; name=&quot;Function parameter is being passed by value and should be passed by reference using pointer.&quot;/&gt;
  127. &lt;/category&gt;
  128. &lt;category id=&quot;10&quot; name=&quot;ISR&quot;&gt;
  129. &lt;rule id=&quot;10.1&quot; name=&quot;An ISR calls a function. Recommend moving function call away from ISR, or inlining the function, or using pragmas.&quot;/&gt;
  130. &lt;/category&gt;
  131. &lt;category id=&quot;11&quot; name=&quot;Constant generator utilization&quot;&gt;
  132. &lt;rule id=&quot;11.1&quot; name=&quot;Loop program control flow compared against higher bits. Recommend compare against lower 4 bits to allow use of constant generators.&quot;/&gt;
  133. &lt;rule id=&quot;11.2&quot; name=&quot;Assignment of higher bits (constants) within a loop. Recommend using lower 4 bits to allow use of constant generators.&quot;/&gt;
  134. &lt;/category&gt;
  135. &lt;category id=&quot;12&quot; name=&quot;Direct Memory Access (DMA) usage&quot;&gt;
  136. &lt;rule id=&quot;12.1&quot; name=&quot;Detected memcpy() for transfer greater than 100 words. Recommend using DMA instead.&quot;/&gt;
  137. &lt;rule id=&quot;12.2&quot; name=&quot;Detected for loop with repetitive data transfer. Recommend using DMA.&quot;/&gt;
  138. &lt;/category&gt;
  139. &lt;category id=&quot;13&quot; name=&quot;Loop counter&quot;&gt;
  140. &lt;rule id=&quot;13.1&quot; name=&quot;Detected loop counting up. Recommend loops count down as detecting zeros is easier.&quot;/&gt;
  141. &lt;/category&gt;
  142. &lt;category id=&quot;14&quot; name=&quot;Array index&quot;&gt;
  143. &lt;rule id=&quot;14.1&quot; name=&quot;Array index using signed variable. Recommend using unsigned variable.&quot;/&gt;
  144. &lt;/category&gt;
  145. &lt;category id=&quot;15&quot; name=&quot;Bitfields&quot;&gt;
  146. &lt;rule id=&quot;15.1&quot; name=&quot;Detected consecutive bitfield assigns. Recommend using bit mask instead.&quot;/&gt;
  147. &lt;/category&gt;
  148. &lt;/body&gt;
  149. </METADATA>
  150. </OPTION>
  151. <OPTION tag='ADVICE__POWER_SEVERITY'>
  152. <TYPE>simple</TYPE>
  153. <NAME>--advice:power_severity</NAME>
  154. <ARG>
  155. <TYPE>ONEOF</TYPE>
  156. <STATUS>required</STATUS>
  157. <DESCRIPTION>error,warning,remark,suppress</DESCRIPTION>
  158. <ONEOF>error</ONEOF>
  159. <ONEOF>warning</ONEOF>
  160. <ONEOF>remark</ONEOF>
  161. <ONEOF>suppress</ONEOF>
  162. </ARG>
  163. <TIP>Set error category for ULP power rules</TIP>
  164. <HELP>Set error category for ULP power rules.</HELP>
  165. </OPTION>
  166. <OPTION tag='ALIASED_VARIABLES'>
  167. <TYPE>simple</TYPE>
  168. <NAME>--aliased_variables</NAME>
  169. <ALIAS>-ma</ALIAS>
  170. <TIP>Assume called funcs create hidden aliases (rare)</TIP>
  171. <HELP>Assume called funcs create hidden aliases (rare)</HELP>
  172. </OPTION>
  173. <OPTION tag='ANALYZE'>
  174. <TYPE>simple</TYPE>
  175. <NAME>--analyze</NAME>
  176. <ARG>
  177. <TYPE>ONEOF</TYPE>
  178. <STATUS>required</STATUS>
  179. <DESCRIPTION>codecov,callgraph</DESCRIPTION>
  180. <ONEOF>codecov</ONEOF>
  181. <ONEOF>callgraph</ONEOF>
  182. </ARG>
  183. <TIP>Generate analysis info from profile data</TIP>
  184. <HELP>Generate analysis information about code coverage or call graph information in the form of CSV files. This information can then be read and interpreted by other tools. For example, the cache layout tool, clt6x, can be used to interpret the call graph information and produce a preferred function order that can be incorporated into the application link. The compiler can only generate one kind of analysis information for a given invocation of the compiler.</HELP>
  185. </OPTION>
  186. <OPTION tag='ANALYZE_ONLY'>
  187. <TYPE>simple</TYPE>
  188. <NAME>--analyze_only</NAME>
  189. <TIP>Only generate analysis</TIP>
  190. <HELP>Generate analysis only; do not continue compilation. This option is used in combination with the --analyze option to instruct the compiler to halt the compilation after it has completed the generation of analysis information requested in the --analyze option.</HELP>
  191. </OPTION>
  192. <OPTION tag='ASM_DEFINE'>
  193. <TYPE>simple</TYPE>
  194. <NAME>--asm_define</NAME>
  195. <ALIAS>-ad</ALIAS>
  196. <ARG>
  197. <TYPE>STRINGLIST</TYPE>
  198. <STATUS>required</STATUS>
  199. <DESCRIPTION>NAME[=value]</DESCRIPTION>
  200. </ARG>
  201. <TIP>Pre-define assembly symbol NAME</TIP>
  202. <HELP>Pre-define the assembly symbol NAME, optionally setting its contents to &apos;value&apos;.</HELP>
  203. </OPTION>
  204. <OPTION tag='ASM_DEPENDENCY'>
  205. <TYPE>simple</TYPE>
  206. <NAME>--asm_dependency</NAME>
  207. <ALIAS>-apd</ALIAS>
  208. <ARG>
  209. <TYPE>STRING</TYPE>
  210. <STATUS>optional</STATUS>
  211. <DESCRIPTION>filename</DESCRIPTION>
  212. </ARG>
  213. <TIP>Generate assembly dependency information</TIP>
  214. <HELP>Generate assembly dependency information. Optionally, name the assembly dependency file.</HELP>
  215. </OPTION>
  216. <OPTION tag='ASM_DIRECTORY'>
  217. <TYPE>simple</TYPE>
  218. <NAME>--asm_directory</NAME>
  219. <ALIAS>-fs</ALIAS>
  220. <ARG>
  221. <TYPE>STRING</TYPE>
  222. <STATUS>required</STATUS>
  223. <DESCRIPTION>dir</DESCRIPTION>
  224. </ARG>
  225. <TIP>Assembly file directory (default is .)</TIP>
  226. <HELP>Assembly file directory (default is .)</HELP>
  227. </OPTION>
  228. <OPTION tag='ASM_EXTENSION'>
  229. <TYPE>simple</TYPE>
  230. <NAME>--asm_extension</NAME>
  231. <ALIAS>-ea</ALIAS>
  232. <ARG>
  233. <TYPE>STRING</TYPE>
  234. <STATUS>required</STATUS>
  235. <DESCRIPTION>.ext</DESCRIPTION>
  236. </ARG>
  237. <TIP>Extension for assembly files (default is .asm)</TIP>
  238. <HELP>Extension for assembly files (default is .asm)</HELP>
  239. </OPTION>
  240. <OPTION tag='ASM_FILE'>
  241. <TYPE>simple</TYPE>
  242. <NAME>--asm_file</NAME>
  243. <ALIAS>-fa</ALIAS>
  244. <ARG>
  245. <TYPE>STRINGLIST</TYPE>
  246. <STATUS>required</STATUS>
  247. <DESCRIPTION>filename</DESCRIPTION>
  248. </ARG>
  249. <TIP>File is an assembly file (default for .asm)</TIP>
  250. <HELP>File is an assembly file (default for .asm)</HELP>
  251. </OPTION>
  252. <OPTION tag='ASM_INCLUDES'>
  253. <TYPE>simple</TYPE>
  254. <NAME>--asm_includes</NAME>
  255. <ALIAS>-api</ALIAS>
  256. <TIP>Generate first-level assembly include file list</TIP>
  257. <HELP>Generate first-level assembly include file list</HELP>
  258. </OPTION>
  259. <OPTION tag='ASM_LISTING'>
  260. <TYPE>simple</TYPE>
  261. <NAME>--asm_listing</NAME>
  262. <ALIAS>-al</ALIAS>
  263. <TIP>Generate listing file</TIP>
  264. <HELP>Generate listing file</HELP>
  265. </OPTION>
  266. <OPTION tag='ASM_UNDEFINE'>
  267. <TYPE>simple</TYPE>
  268. <NAME>--asm_undefine</NAME>
  269. <ALIAS>-au</ALIAS>
  270. <ARG>
  271. <TYPE>STRINGLIST</TYPE>
  272. <STATUS>required</STATUS>
  273. <DESCRIPTION>NAME</DESCRIPTION>
  274. </ARG>
  275. <TIP>Undefine assembly symbol NAME</TIP>
  276. <HELP>Undefine assembly symbol NAME</HELP>
  277. </OPTION>
  278. <OPTION tag='AUTO_INLINE'>
  279. <TYPE>simple</TYPE>
  280. <NAME>--auto_inline</NAME>
  281. <ALIAS>-oi</ALIAS>
  282. <ARG>
  283. <TYPE>NUMBER</TYPE>
  284. <STATUS>optional</STATUS>
  285. <DESCRIPTION>size</DESCRIPTION>
  286. </ARG>
  287. <TIP>Specify threshold for automatic inlining</TIP>
  288. <HELP>Specify threshold for automatic inlining</HELP>
  289. </OPTION>
  290. <OPTION tag='BUFFER_DIAGNOSTICS'>
  291. <TYPE>simple</TYPE>
  292. <NAME>--buffer_diagnostics</NAME>
  293. <ALIAS>-pdb</ALIAS>
  294. <TIP>Line buffer diagnostic output</TIP>
  295. <HELP>Line buffer diagnostic output to reduce message mixing when compiling in parallel.</HELP>
  296. </OPTION>
  297. <OPTION tag='CPLUSPLUS03'>
  298. <TYPE>simple</TYPE>
  299. <NAME>--c++03</NAME>
  300. <TIP>Compile program in C++03 mode.</TIP>
  301. <HELP>Compile program in C++03 mode.</HELP>
  302. <RESETS>EMBEDDED_CPP</RESETS>
  303. </OPTION>
  304. <OPTION tag='C89'>
  305. <TYPE>simple</TYPE>
  306. <NAME>--c89</NAME>
  307. <TIP>Compile program in ANSI C89 mode.</TIP>
  308. <HELP>Compile program in ANSI C89 mode.</HELP>
  309. <RESETS>KR_COMPATIBLE</RESETS>
  310. <RESETS>C99</RESETS>
  311. </OPTION>
  312. <OPTION tag='C99'>
  313. <TYPE>simple</TYPE>
  314. <NAME>--c99</NAME>
  315. <TIP>Compile program in C99 mode.</TIP>
  316. <HELP>Compile program in C99 mode.</HELP>
  317. <RESETS>C89</RESETS>
  318. <RESETS>KR_COMPATIBLE</RESETS>
  319. </OPTION>
  320. <OPTION tag='C_EXTENSION'>
  321. <TYPE>simple</TYPE>
  322. <NAME>--c_extension</NAME>
  323. <ALIAS>-ec</ALIAS>
  324. <ARG>
  325. <TYPE>STRING</TYPE>
  326. <STATUS>required</STATUS>
  327. <DESCRIPTION>.ext</DESCRIPTION>
  328. </ARG>
  329. <TIP>Extension for C files (default is .c)</TIP>
  330. <HELP>Extension for C files (default is .c)</HELP>
  331. </OPTION>
  332. <OPTION tag='C_FILE'>
  333. <TYPE>simple</TYPE>
  334. <NAME>--c_file</NAME>
  335. <ALIAS>-fc</ALIAS>
  336. <ARG>
  337. <TYPE>STRINGLIST</TYPE>
  338. <STATUS>required</STATUS>
  339. <DESCRIPTION>filename</DESCRIPTION>
  340. </ARG>
  341. <TIP>File is a C file (default for .c/no ext)</TIP>
  342. <HELP>File is a C file (default for .c/no ext)</HELP>
  343. </OPTION>
  344. <OPTION tag='C_SRC_INTERLIST'>
  345. <TYPE>simple</TYPE>
  346. <NAME>--c_src_interlist</NAME>
  347. <ALIAS>-ss</ALIAS>
  348. <TIP>Generate C source interlisted assembly file</TIP>
  349. <HELP>Generate C source interlisted assembly file</HELP>
  350. <OVERRIDES>SRC_INTERLIST</OVERRIDES>
  351. </OPTION>
  352. <OPTION tag='CALL_ASSUMPTIONS'>
  353. <TYPE>simple</TYPE>
  354. <NAME>--call_assumptions</NAME>
  355. <ALIAS>-op</ALIAS>
  356. <ARG>
  357. <TYPE>RANGE</TYPE>
  358. <STATUS>required</STATUS>
  359. <DESCRIPTION>0-3</DESCRIPTION>
  360. <RANGE low='0' high='3'/>
  361. </ARG>
  362. <TIP>Specify call assumptions when optimizing</TIP>
  363. <HELP>Specify assumptions to make about function calls when optimizing.
  364. Level 0 (-op0) indicates that the module has functions that are called from other modules.
  365. Level 1 (-op1) indicates that the module does not have functions that are called by other modules but has global variables that are modified in other modules.
  366. Level 2 (-op2) indicates that the module does not have functions that are called or globals that are modified by other modules.
  367. Level 3 (-op3) indicates that the module has functions that are called by other modules but does not have globals that are modified by other modules.</HELP>
  368. </OPTION>
  369. <OPTION tag='CHECK_MISRA'>
  370. <TYPE>simple</TYPE>
  371. <NAME>--check_misra</NAME>
  372. <ARG>
  373. <TYPE>STRINGLIST</TYPE>
  374. <STATUS>optional</STATUS>
  375. <DESCRIPTION>RULE</DESCRIPTION>
  376. <DEFAULT>all</DEFAULT>
  377. </ARG>
  378. <TIP>Enable checking of MISRA-C:2004 rules</TIP>
  379. <HELP>Enable verification of the MISRA-C:2004 rules, &apos;Guidelines for the use of the C language in critical systems.&apos; For information on MISRA-C, see http://www.misra.org.uk. MISRA and MISRA-C are trademarks of MIRA Ltd.</HELP>
  380. <METADATA type='rulelist'>
  381. &lt;body&gt;
  382. &lt;group id=&quot;required&quot; name=&quot;Required&quot;/&gt;
  383. &lt;group id=&quot;advisory&quot; name=&quot;Advisory&quot;/&gt;
  384. &lt;category id=&quot;1&quot; name=&quot;Environment&quot;&gt;
  385. &lt;rule id=&quot;1.1&quot; groups=&quot;required&quot; name=&quot;All code shall conform to ISO 9899:1990 &amp;quot;Programming languages - C&amp;quot;, amended and corrected by ISO/IEC 9899/COR1:1995, ISO/IEC 9899/AMD1:1995, and ISO/IEC 9899/COR2:1996.&quot;/&gt;
  386. &lt;/category&gt;
  387. &lt;category id=&quot;2&quot; name=&quot;Language extensions&quot;&gt;
  388. &lt;rule id=&quot;2.1&quot; groups=&quot;required&quot; name=&quot;Assembly language shall be encapsulated and isolated.&quot;/&gt;
  389. &lt;rule id=&quot;2.2&quot; groups=&quot;required&quot; name=&quot;Source code shall only use /* ... */ style comments.&quot;/&gt;
  390. &lt;rule id=&quot;2.3&quot; groups=&quot;required&quot; name=&quot;The character sequence /* shall not be used within a comment.&quot;/&gt;
  391. &lt;/category&gt;
  392. &lt;category id=&quot;3&quot; name=&quot;Documentation&quot;&gt;
  393. &lt;/category&gt;
  394. &lt;category id=&quot;4&quot; name=&quot;Character sets&quot;&gt;
  395. &lt;rule id=&quot;4.1&quot; groups=&quot;required&quot; name=&quot;Only those excape sequences that are defined in the ISO C standard shall be used.&quot;/&gt;
  396. &lt;rule id=&quot;4.2&quot; groups=&quot;required&quot; name=&quot;Trigraphs shall not be used.&quot;/&gt;
  397. &lt;/category&gt;
  398. &lt;category id=&quot;5&quot; name=&quot;Identifiers&quot;&gt;
  399. &lt;rule id=&quot;5.2&quot; groups=&quot;required&quot; name=&quot;Identifiers in an inner scope shall not use the same name as an identifier in an outer scope, and therefore hide that identifier.&quot;/&gt;
  400. &lt;rule id=&quot;5.3&quot; groups=&quot;required&quot; name=&quot;A typedef name shall be a unique identifier.&quot;/&gt;
  401. &lt;rule id=&quot;5.4&quot; groups=&quot;required&quot; name=&quot;A tag name shall be a unique identifier.&quot;/&gt;
  402. &lt;rule id=&quot;5.6&quot; groups=&quot;advisory&quot; name=&quot;No identifier in one name space should have the same spelling as an identifier in another name space, with the exception of structure and union member names.&quot;/&gt;
  403. &lt;rule id=&quot;5.7&quot; groups=&quot;advisory&quot; name=&quot;No identifier name should be reused&quot;/&gt;
  404. &lt;/category&gt;
  405. &lt;category id=&quot;6&quot; name=&quot;Types&quot;&gt;
  406. &lt;rule id=&quot;6.1&quot; groups=&quot;required&quot; name=&quot;The plain char type shall be used only for storage and use of character values.&quot;/&gt;
  407. &lt;rule id=&quot;6.2&quot; groups=&quot;required&quot; name=&quot;signed and unsigned char type shall be used only of the storage and use of numeric values.&quot;/&gt;
  408. &lt;rule id=&quot;6.3&quot; groups=&quot;advisory&quot; name=&quot;typedefs that indicate size and signedness should be used in place of the basic numerical types.&quot;/&gt;
  409. &lt;rule id=&quot;6.4&quot; groups=&quot;required&quot; name=&quot;Bit fields shall only be defined to be of type unsigned inti or signed int.&quot;/&gt;
  410. &lt;rule id=&quot;6.5&quot; groups=&quot;required&quot; name=&quot;Bit fields of the type signed int shall be at least 2 bits long.&quot;/&gt;
  411. &lt;/category&gt;
  412. &lt;category id=&quot;7&quot; name=&quot;Constants&quot;&gt;
  413. &lt;rule id=&quot;7.1&quot; groups=&quot;required&quot; name=&quot;Octal extensions (other than zero) and octal escape sequences shall not be used.&quot;/&gt;
  414. &lt;/category&gt;
  415. &lt;category id=&quot;8&quot; name=&quot;Declarations and definitions&quot;&gt;
  416. &lt;rule id=&quot;8.1&quot; groups=&quot;required&quot; name=&quot;Functions shall have prototype declarsions and the prototype shall be visible at both the function definition and call.&quot;/&gt;
  417. &lt;rule id=&quot;8.2&quot; groups=&quot;required&quot; name=&quot;Whenever an object or function is declared or defined, its type shall be explicitly stated.&quot;/&gt;
  418. &lt;rule id=&quot;8.5&quot; groups=&quot;required&quot; name=&quot;There shall be no definitions of objects or functons in a header file.&quot;/&gt;
  419. &lt;rule id=&quot;8.6&quot; groups=&quot;required&quot; name=&quot;Functions shall be declared at file scope.&quot;/&gt;
  420. &lt;rule id=&quot;8.7&quot; groups=&quot;required&quot; name=&quot;Objects shall be defined at block scope if they are only accessed from within a single function.&quot;/&gt;
  421. &lt;rule id=&quot;8.8&quot; groups=&quot;required&quot; name=&quot;An external object or function shall be declared in one and only one file.&quot;/&gt;
  422. &lt;rule id=&quot;8.11&quot; groups=&quot;required&quot; name=&quot;The static storage class specifier shall be used in definitions and declarations of objects and functions that have internal linkage.&quot;/&gt;
  423. &lt;rule id=&quot;8.12&quot; groups=&quot;required&quot; name=&quot;When an array is declared with external linkage, its size shall be stated explicitly or defined implicitly by initialization.&quot;/&gt;
  424. &lt;/category&gt;
  425. &lt;category id=&quot;9&quot; name=&quot;Initialization&quot;&gt;
  426. &lt;rule id=&quot;9.1&quot; groups=&quot;required&quot; name=&quot;All automatic variables shall have been assigned a value before being used.&quot;/&gt;
  427. &lt;rule id=&quot;9.2&quot; groups=&quot;required&quot; name=&quot;Braces shall be used to indicate and match the structure in the non-zero initialization of arrays and structures.&quot;/&gt;
  428. &lt;rule id=&quot;9.3&quot; groups=&quot;required&quot; name=&quot;In an enumerator list, the &amp;quot;=&amp;quot; construct shall not be used to explicitly initialize members other than the first, unless all items are explicitly initialized.&quot;/&gt;
  429. &lt;/category&gt;
  430. &lt;category id=&quot;10&quot; name=&quot;Arithmetic type conversions&quot;&gt;
  431. &lt;rule id=&quot;10.1&quot; groups=&quot;required&quot; name=&quot;The value of an expression of integer type shall not be implicitly converted to a different underlying type if: a) it is not a conversion to a wider integer type of the same signedness, or b) the expression is complex, or c) the expression is not constant and is a function argument, or d) the expression is not constant and is a return expression.&quot;/&gt;
  432. &lt;rule id=&quot;10.2&quot; groups=&quot;required&quot; name=&quot;The value of an expression of floating type shall not be implicitly converted to a different type if: a) it is not a conversion to a wider floating type, or b) the expression is complex, or c) the expression is a function argument, or d) the expression is a return expression.&quot;/&gt;
  433. &lt;rule id=&quot;10.3&quot; groups=&quot;required&quot; name=&quot;The value of a complex expression of integer type may only be cast to a type that is narrower and of the same signedness as the underlying type of the expression.&quot;/&gt;
  434. &lt;rule id=&quot;10.4&quot; groups=&quot;required&quot; name=&quot;The value of a complex expression of floating type may only be cast to a narrower floating type.&quot;/&gt;
  435. &lt;rule id=&quot;10.5&quot; groups=&quot;required&quot; name=&quot;If the bitwise operations ~ and &amp;lt;&amp;lt; are applied to an operand of underlying type unsigned char or unsigned short, the result shall immediately cast to the underlying type of the operand.&quot;/&gt;
  436. &lt;rule id=&quot;10.6&quot; groups=&quot;required&quot; name=&quot;A &amp;quot;U&amp;quot; suffix shall be applied to all constans of unsigned type.&quot;/&gt;
  437. &lt;/category&gt;
  438. &lt;category id=&quot;11&quot; name=&quot;Pointer type conversions&quot;&gt;
  439. &lt;rule id=&quot;11.1&quot; groups=&quot;required&quot; name=&quot;Conversions shall not be performed between a pointer to a function and any type other than an integral type.&quot;/&gt;
  440. &lt;rule id=&quot;11.2&quot; groups=&quot;required&quot; name=&quot;Conversions shall not be perfornmed between a pointer to object and any type other than an integral type, another pointer to object type or a pointer to void.&quot;/&gt;
  441. &lt;rule id=&quot;11.3&quot; groups=&quot;advisory&quot; name=&quot;A cast should not be performed between a pointer type and an integral type.&quot;/&gt;
  442. &lt;rule id=&quot;11.4&quot; groups=&quot;advisory&quot; name=&quot;A cast should not be performed between a pointer to object type and a different pointer to object type.&quot;/&gt;
  443. &lt;rule id=&quot;11.5&quot; groups=&quot;required&quot; name=&quot;A cast shall not be performed that removes any const or volatile qualifications from the type addressed by a pointer.&quot;/&gt;
  444. &lt;/category&gt;
  445. &lt;category id=&quot;12&quot; name=&quot;Expressions&quot;&gt;
  446. &lt;rule id=&quot;12.1&quot; groups=&quot;advisory&quot; name=&quot;Limited dependence should be placed on C&apos;s operator precedence rules in expressions.&quot;/&gt;
  447. &lt;rule id=&quot;12.2&quot; groups=&quot;required&quot; name=&quot;The value of an expression shall be the same under any order of evaluation that the standard permits.&quot;/&gt;
  448. &lt;rule id=&quot;12.3&quot; groups=&quot;required&quot; name=&quot;The sizeof operator shall not be used on expression that contain side effects.&quot;/&gt;
  449. &lt;rule id=&quot;12.4&quot; groups=&quot;required&quot; name=&quot;The right-hand operand of a logical &amp;amp;&amp;amp; or || operator shall not contain side effects.&quot;/&gt;
  450. &lt;rule id=&quot;12.5&quot; groups=&quot;required&quot; name=&quot;The operations of a logical &amp;amp;&amp;amp; or || shall be primary-expressions.&quot;/&gt;
  451. &lt;rule id=&quot;12.6&quot; groups=&quot;advisory&quot; name=&quot;The operands of logical operators (&amp;amp;&amp;amp;, || and !) should be effectively Boolean. Expressions that are effectively Boolean should not be used as operands to operators other than (&amp;amp;&amp;amp;, || and !).&quot;/&gt;
  452. &lt;rule id=&quot;12.7&quot; groups=&quot;required&quot; name=&quot;Bitwise operators shall not be applied to operands whose underlying type is signed.&quot;/&gt;
  453. &lt;rule id=&quot;12.8&quot; groups=&quot;required&quot; name=&quot;The right-hand operand of a shift operator shall lie between zero and one less than the width in bits of the underlying type of the left-hand operand.&quot;/&gt;
  454. &lt;rule id=&quot;12.9&quot; groups=&quot;required&quot; name=&quot;The unary minus operator shall not be applied to an expression whose underlying type is unsigned.&quot;/&gt;
  455. &lt;rule id=&quot;12.10&quot; groups=&quot;required&quot; name=&quot;The comma operator shall not be used&quot;/&gt;
  456. &lt;rule id=&quot;12.13&quot; groups=&quot;advisory&quot; name=&quot;The increment (++ and decrement (--) operators should not be mixed with other operators in an expression.&quot;/&gt;
  457. &lt;/category&gt;
  458. &lt;category id=&quot;13&quot; name=&quot;Control statement expressions&quot;&gt;
  459. &lt;rule id=&quot;13.1&quot; groups=&quot;required&quot; name=&quot;Assignment operators shall not be used in expressiopns that yield a Boolean value.&quot;/&gt;
  460. &lt;rule id=&quot;13.2&quot; groups=&quot;advisory&quot; name=&quot;Tests of a value against zero should be made explicit, unless the operand is effectively Boolean.&quot;/&gt;
  461. &lt;rule id=&quot;13.3&quot; groups=&quot;required&quot; name=&quot;Floating-point expressions shall not be tested for equality nor inequality.&quot;/&gt;
  462. &lt;rule id=&quot;13.4&quot; groups=&quot;required&quot; name=&quot;The controlling expression of a for statement shall not contain any objects of floating type.&quot;/&gt;
  463. &lt;rule id=&quot;13.5&quot; groups=&quot;required&quot; name=&quot;The three expressions of a for statement shall be concerned only with loop control.&quot;/&gt;
  464. &lt;rule id=&quot;13.6&quot; groups=&quot;required&quot; name=&quot;Numeric variables being used within a for loop for iteration counting shall not be modified in the body of the loop.&quot;/&gt;
  465. &lt;/category&gt;
  466. &lt;category id=&quot;14&quot; name=&quot;Control Flow&quot;&gt;
  467. &lt;rule id=&quot;14.1&quot; groups=&quot;required&quot; name=&quot;There shall be no unreachable code.&quot;/&gt;
  468. &lt;rule id=&quot;14.2&quot; groups=&quot;required&quot; name=&quot;All non-null statements shall either: a) have at least one side effect however executed, or b) cause cohntrol flow to change.&quot;/&gt;
  469. &lt;rule id=&quot;14.3&quot; groups=&quot;required&quot; name=&quot;Before preprocessing, a null statement shall only occur on a line by itself; it may be followed by a comment provided that the first character following the null statement is a white-space character.&quot;/&gt;
  470. &lt;rule id=&quot;14.4&quot; groups=&quot;required&quot; name=&quot;The goto statement shall not be used.&quot;/&gt;
  471. &lt;rule id=&quot;14.5&quot; groups=&quot;required&quot; name=&quot;The continue statement shall not be used.&quot;/&gt;
  472. &lt;rule id=&quot;14.6&quot; groups=&quot;required&quot; name=&quot;For any iteration statement there shall be at most one break statement used for loop termination.&quot;/&gt;
  473. &lt;rule id=&quot;14.7&quot; groups=&quot;required&quot; name=&quot;A function shall have a single point of exit at the end of the function.&quot;/&gt;
  474. &lt;rule id=&quot;14.8&quot; groups=&quot;required&quot; name=&quot;The statement forming the body of a switch, while, do ... while or for statement shall be a compound statement.&quot;/&gt;
  475. &lt;rule id=&quot;14.9&quot; groups=&quot;required&quot; name=&quot;An if (expression) construct shall be followed by a compound statement. The else keyword shall be followed by either a compound statement, or another if statement.&quot;/&gt;
  476. &lt;rule id=&quot;14.10&quot; groups=&quot;required&quot; name=&quot;All if ... else if constructs shall be terminated with an else clause.&quot;/&gt;
  477. &lt;/category&gt;
  478. &lt;category id=&quot;15&quot; name=&quot;Switch statements&quot;&gt;
  479. &lt;rule id=&quot;15.1&quot; groups=&quot;required&quot; name=&quot;A switch label shall only be used when the most closely-enclosing compound statement is the body of a switch statement.&quot;/&gt;
  480. &lt;rule id=&quot;15.2&quot; groups=&quot;required&quot; name=&quot;An unconditional break statement shall terminate every non-empty switch clause.&quot;/&gt;
  481. &lt;rule id=&quot;15.3&quot; groups=&quot;required&quot; name=&quot;The final clause of a switch statement sahll be the default clause.&quot;/&gt;
  482. &lt;rule id=&quot;15.4&quot; groups=&quot;required&quot; name=&quot;A switch statement shall not represent a value that is effectively Boolean.&quot;/&gt;
  483. &lt;rule id=&quot;15.5&quot; groups=&quot;required&quot; name=&quot;Every switch statement shall have at least one case clause.&quot;/&gt;
  484. &lt;/category&gt;
  485. &lt;category id=&quot;16&quot; name=&quot;Functions&quot;&gt;
  486. &lt;rule id=&quot;16.1&quot; groups=&quot;required&quot; name=&quot;Functions shall not be defined with variable numbers of arguments.&quot;/&gt;
  487. &lt;rule id=&quot;16.3&quot; groups=&quot;required&quot; name=&quot;Identifiers shall be given for all of the parameters in a functuion protoype declaration.&quot;/&gt;
  488. &lt;rule id=&quot;16.4&quot; groups=&quot;required&quot; name=&quot;The identifiers used in the declaration and definition of a function shall be identical.&quot;/&gt;
  489. &lt;rule id=&quot;16.5&quot; groups=&quot;required&quot; name=&quot;Functions with no parameters shall be declared with parameter type void.&quot;/&gt;
  490. &lt;rule id=&quot;16.7&quot; groups=&quot;advisory&quot; name=&quot;A pointer parameter in a function prototype shall be declared as pointer to const if the pointer is not used to modify the adressed object.&quot;/&gt;
  491. &lt;rule id=&quot;16.8&quot; groups=&quot;required&quot; name=&quot;All exit paths from a function with non-void return type shall have an explicit return statement with an expression.&quot;/&gt;
  492. &lt;rule id=&quot;16.9&quot; groups=&quot;required&quot; name=&quot;A function identifier shall only be used with either a preceding &amp;amp;, or with a parenthesized parameter list, which may be empty.&quot;/&gt;
  493. &lt;/category&gt;
  494. &lt;category id=&quot;17&quot; name=&quot;Pointers and arrays&quot;&gt;
  495. &lt;rule id=&quot;17.4&quot; groups=&quot;required&quot; name=&quot;Array indexing shall be the only allowed form of pointer arithmetic.&quot;/&gt;
  496. &lt;rule id=&quot;17.5&quot; groups=&quot;advisory&quot; name=&quot;The declaration of objects should contain no more than 2 levels of pointer indirection.&quot;/&gt;
  497. &lt;rule id=&quot;17.6&quot; groups=&quot;required&quot; name=&quot;The address of an object with automatic storage shall not be assigned to another object that may persist after the first object has ceased to exist.&quot;/&gt;
  498. &lt;/category&gt;
  499. &lt;category id=&quot;18&quot; name=&quot;Structures and unions&quot;&gt;
  500. &lt;rule id=&quot;18.1&quot; groups=&quot;required&quot; name=&quot;All structure or union types shall be complete at the end of a translation unit.&quot;/&gt;
  501. &lt;rule id=&quot;18.4&quot; groups=&quot;required&quot; name=&quot;Unions shall not be used.&quot;/&gt;
  502. &lt;/category&gt;
  503. &lt;category id=&quot;19&quot; name=&quot;Preprocessing directives&quot;&gt;
  504. &lt;rule id=&quot;19.1&quot; groups=&quot;advisory&quot; name=&quot;#include statements in a file should only be preceded by other preprocessor directives or comments.&quot;/&gt;
  505. &lt;rule id=&quot;19.2&quot; groups=&quot;advisory&quot; name=&quot;Non-standard characters should not occur in header file hnames in #include directives.&quot;/&gt;
  506. &lt;rule id=&quot;19.3&quot; groups=&quot;required&quot; name=&quot;The #include directive shall be followed by either a &amp;lt;filename&amp;gt; or &amp;quot;filename&amp;quot; sequence.&quot;/&gt;
  507. &lt;rule id=&quot;19.4&quot; groups=&quot;required&quot; name=&quot;C macros shall only expand to a braced initializer, a constant, a parenthesized expression, a type qualifier, a storage class specifier, or a do-while-zero construct.&quot;/&gt;
  508. &lt;rule id=&quot;19.5&quot; groups=&quot;required&quot; name=&quot;Macros shall not be #define&apos;d or #undef&apos;d within a block.&quot;/&gt;
  509. &lt;rule id=&quot;19.6&quot; groups=&quot;required&quot; name=&quot;#undef shall not be used.&quot;/&gt;
  510. &lt;rule id=&quot;19.7&quot; groups=&quot;advisory&quot; name=&quot;A function should be used in preference to a function-like macro.&quot;/&gt;
  511. &lt;rule id=&quot;19.8&quot; groups=&quot;required&quot; name=&quot;A function-like macro shall not be invoked without all of its arguments.&quot;/&gt;
  512. &lt;rule id=&quot;19.9&quot; groups=&quot;required&quot; name=&quot;Arguments to a function-like macro shall not contain tokens that look like preprocessing directives.&quot;/&gt;
  513. &lt;rule id=&quot;19.10&quot; groups=&quot;required&quot; name=&quot;In the definition of a function-like macro each instance of a parameter shall be enclosed in parentheses unless it it used as the operand of # or ##.&quot;/&gt;
  514. &lt;rule id=&quot;19.11&quot; groups=&quot;required&quot; name=&quot;All macro identifiers in preprocessor directives shall be defined before use, except in #ifdef and #ifndef preprocessor directives and the defined() operator.&quot;/&gt;
  515. &lt;rule id=&quot;19.12&quot; groups=&quot;required&quot; name=&quot;There shall be at most one occurrence of the # or ## preprocessor operators in a single macro definition.&quot;/&gt;
  516. &lt;rule id=&quot;19.13&quot; groups=&quot;advisory&quot; name=&quot;The # and ## preprocessor operators should not be used.&quot;/&gt;
  517. &lt;rule id=&quot;19.14&quot; groups=&quot;required&quot; name=&quot;The defined preprocessor operator shall only be used in one of the two standard forms.&quot;/&gt;
  518. &lt;rule id=&quot;19.15&quot; groups=&quot;required&quot; name=&quot;Precautions shall be taken in order to prevent the contents of a header file being included twice.&quot;/&gt;
  519. &lt;rule id=&quot;19.16&quot; groups=&quot;required&quot; name=&quot;Preprocessoing directives shall be syntactically meaningful even when excluded by the preprocessor.&quot;/&gt;
  520. &lt;rule id=&quot;19.17&quot; groups=&quot;required&quot; name=&quot;All #else, #elif and #endif preprocessor directives shall reside in the same file as the #if or #ifdef directive to which they are related.&quot;/&gt;
  521. &lt;/category&gt;
  522. &lt;category id=&quot;20&quot; name=&quot;Standard libraries&quot;&gt;
  523. &lt;rule id=&quot;20.1&quot; groups=&quot;required&quot; name=&quot;Reserved identifiers, macros and functions in the standard library, shall not be defined, redefined or undefined.&quot;/&gt;
  524. &lt;rule id=&quot;20.2&quot; groups=&quot;required&quot; name=&quot;The names of standard library macros, obhjects and functions shall not be reused.&quot;/&gt;
  525. &lt;rule id=&quot;20.4&quot; groups=&quot;required&quot; name=&quot;Dynamic heap memory allocation shall not be used.&quot;/&gt;
  526. &lt;rule id=&quot;20.5&quot; groups=&quot;required&quot; name=&quot;The error indicator errno shall not be used.&quot;/&gt;
  527. &lt;rule id=&quot;20.6&quot; groups=&quot;required&quot; name=&quot;The macro offsetof, in library &amp;lt;stddef.h&amp;gt;, shall not be used.&quot;/&gt;
  528. &lt;rule id=&quot;20.7&quot; groups=&quot;required&quot; name=&quot;The setjmp macro and the longjmp function shall not be used.&quot;/&gt;
  529. &lt;rule id=&quot;20.8&quot; groups=&quot;required&quot; name=&quot;The signal handling facilities of &amp;lt;signal.h&amp;gt; shall not be used.&quot;/&gt;
  530. &lt;rule id=&quot;20.9&quot; groups=&quot;required&quot; name=&quot;The input/output library &amp;lt;stdio.h&amp;gt; shall not be used in production code.&quot;/&gt;
  531. &lt;rule id=&quot;20.10&quot; groups=&quot;required&quot; name=&quot;The library functions atof, atoi and atol from library &amp;lt;stdlib.h&amp;gt; shall not be used.&quot;/&gt;
  532. &lt;rule id=&quot;20.11&quot; groups=&quot;required&quot; name=&quot;The library functions abort, exit, getenv and system from library &amp;lt;stdlib.h&amp;gt; shall not be used.&quot;/&gt;
  533. &lt;rule id=&quot;20.12&quot; groups=&quot;required&quot; name=&quot;The time handling functions of library &amp;lt;time.h&amp;gt; shall not be used.&quot;/&gt;
  534. &lt;/category&gt;
  535. &lt;/body&gt;
  536. </METADATA>
  537. </OPTION>
  538. <OPTION tag='CMD_FILE'>
  539. <TYPE>simple</TYPE>
  540. <NAME>--cmd_file</NAME>
  541. <ALIAS>-@</ALIAS>
  542. <ARG>
  543. <TYPE>STRINGLIST</TYPE>
  544. <STATUS>required</STATUS>
  545. <DESCRIPTION>filename</DESCRIPTION>
  546. </ARG>
  547. <TIP>Read options from specified file </TIP>
  548. <HELP>Read additional compile options the specified filename.</HELP>
  549. </OPTION>
  550. <OPTION tag='CODE_MODEL'>
  551. <TYPE>simple</TYPE>
  552. <NAME>--code_model</NAME>
  553. <ARG>
  554. <TYPE>ONEOF</TYPE>
  555. <STATUS>required</STATUS>
  556. <DESCRIPTION>small,large</DESCRIPTION>
  557. <ONEOF>small</ONEOF>
  558. <ONEOF>large</ONEOF>
  559. </ARG>
  560. <TIP>Specify the code memory model.</TIP>
  561. <HELP>Specify the code memory model to be used. Small code model only allows code to be located in the low 64k of memory while large code model allows code to be located anywhere in memory. Large-code model has a slight performance penalty. This option only applies to MSP430X devices.</HELP>
  562. </OPTION>
  563. <OPTION tag='COMMON'>
  564. <TYPE>simple</TYPE>
  565. <NAME>--common</NAME>
  566. <ARG>
  567. <TYPE>ONEOF</TYPE>
  568. <STATUS>required</STATUS>
  569. <DESCRIPTION>on,off</DESCRIPTION>
  570. <ONEOF>on</ONEOF>
  571. <ONEOF>off</ONEOF>
  572. </ARG>
  573. <TIP>Use ELF common symbols</TIP>
  574. <HELP>Emit uninitialized variables as common symbols, instead of allocating them to a section. Any variables that have no conflicting requirements, such as data section pragmas, will become common symbols. Unused common blocks may be omitted by the linker to save memory at runtime.</HELP>
  575. </OPTION>
  576. <OPTION tag='COMPILE_ONLY'>
  577. <TYPE>cmdline</TYPE>
  578. <NAME>--compile_only</NAME>
  579. <ALIAS>-c</ALIAS>
  580. <TIP>Disable linking (overrides -z)</TIP>
  581. <HELP>Disable linking, overriding -z (if used).</HELP>
  582. </OPTION>
  583. <OPTION tag='COMPILER_REVISION'>
  584. <TYPE>cmdline</TYPE>
  585. <NAME>--compiler_revision</NAME>
  586. <TIP>Print compiler revision and exit</TIP>
  587. <HELP>Print out the compiler release revision and exit.</HELP>
  588. </OPTION>
  589. <OPTION tag='COPY_FILE'>
  590. <TYPE>simple</TYPE>
  591. <NAME>--copy_file</NAME>
  592. <ALIAS>-ahc</ALIAS>
  593. <ARG>
  594. <TYPE>STRINGLIST</TYPE>
  595. <STATUS>required</STATUS>
  596. <DESCRIPTION>filename</DESCRIPTION>
  597. </ARG>
  598. <TIP>Simulate source &apos;.copy filename&apos;</TIP>
  599. <HELP>Simulate source &apos;.copy filename&apos;</HELP>
  600. </OPTION>
  601. <OPTION tag='CPP_DEFAULT'>
  602. <TYPE>simple</TYPE>
  603. <NAME>--cpp_default</NAME>
  604. <ALIAS>-fg</ALIAS>
  605. <TIP>Treat C files as C++ files</TIP>
  606. <HELP>Treat C files as C++ files</HELP>
  607. </OPTION>
  608. <OPTION tag='CPP_EXTENSION'>
  609. <TYPE>simple</TYPE>
  610. <NAME>--cpp_extension</NAME>
  611. <ALIAS>-ep</ALIAS>
  612. <ARG>
  613. <TYPE>STRING</TYPE>
  614. <STATUS>required</STATUS>
  615. <DESCRIPTION>.ext</DESCRIPTION>
  616. </ARG>
  617. <TIP>Extension for C++ files (default is .cpp)</TIP>
  618. <HELP>Extension for C++ files (default is .cpp)</HELP>
  619. </OPTION>
  620. <OPTION tag='CPP_FILE'>
  621. <TYPE>simple</TYPE>
  622. <NAME>--cpp_file</NAME>
  623. <ALIAS>-fp</ALIAS>
  624. <ARG>
  625. <TYPE>STRINGLIST</TYPE>
  626. <STATUS>required</STATUS>
  627. <DESCRIPTION>filename</DESCRIPTION>
  628. </ARG>
  629. <TIP>File is a C++ file (default for .C .cpp .cc)</TIP>
  630. <HELP>File is a C++ file (default for .C .cpp .cc)</HELP>
  631. </OPTION>
  632. <OPTION tag='CROSS_REFERENCE'>
  633. <TYPE>simple</TYPE>
  634. <NAME>--cross_reference</NAME>
  635. <ALIAS>-ax</ALIAS>
  636. <TIP>Generate cross reference file</TIP>
  637. <HELP>Generate cross reference file</HELP>
  638. </OPTION>
  639. <OPTION tag='DATA_MODEL'>
  640. <TYPE>simple</TYPE>
  641. <NAME>--data_model</NAME>
  642. <ARG>
  643. <TYPE>ONEOF</TYPE>
  644. <STATUS>required</STATUS>
  645. <DESCRIPTION>small,large,restricted</DESCRIPTION>
  646. <ONEOF>small</ONEOF>
  647. <ONEOF>large</ONEOF>
  648. <ONEOF>restricted</ONEOF>
  649. </ARG>
  650. <TIP>Specify the data memory model.</TIP>
  651. <HELP>Specify the data memory model to be used. Small data model only allows data to be located in the low 64k of memory. Large data model allows data to be located anywhere in memory, but there is an associated performance penalty. The restricted model allows data to be located anywhere in memory, but individual objects cannot be greater than 64k in size. Restricted data model has less performance overhead than the large data model and is the default. This option only applies to MSP430X devices.</HELP>
  652. </OPTION>
  653. <OPTION tag='DEFINE'>
  654. <TYPE>simple</TYPE>
  655. <NAME>--define</NAME>
  656. <ALIAS>-D</ALIAS>
  657. <ARG>
  658. <TYPE>STRINGLIST</TYPE>
  659. <STATUS>required</STATUS>
  660. <DESCRIPTION>NAME[=value]</DESCRIPTION>
  661. </ARG>
  662. <TIP>Pre-define NAME</TIP>
  663. <HELP>Pre-define a symbol with the id &apos;NAME&apos;, optionally setting it&apos;s contents to &apos;value&apos;.</HELP>
  664. </OPTION>
  665. <OPTION tag='DIAG_ERROR'>
  666. <TYPE>simple</TYPE>
  667. <NAME>--diag_error</NAME>
  668. <ALIAS>-pdse</ALIAS>
  669. <ARG>
  670. <TYPE>STRINGLIST</TYPE>
  671. <STATUS>required</STATUS>
  672. <DESCRIPTION>id</DESCRIPTION>
  673. </ARG>
  674. <TIP>Treat diagnostic &lt;id&gt; as error</TIP>
  675. <HELP>Treat diagnostic &lt;id&gt; as error</HELP>
  676. </OPTION>
  677. <OPTION tag='DIAG_REMARK'>
  678. <TYPE>simple</TYPE>
  679. <NAME>--diag_remark</NAME>
  680. <ALIAS>-pdsr</ALIAS>
  681. <ARG>
  682. <TYPE>STRINGLIST</TYPE>
  683. <STATUS>required</STATUS>
  684. <DESCRIPTION>id</DESCRIPTION>
  685. </ARG>
  686. <TIP>Treat diagnostic &lt;id&gt; as remark</TIP>
  687. <HELP>Treat diagnostic &lt;id&gt; as remark</HELP>
  688. </OPTION>
  689. <OPTION tag='DIAG_SUPPRESS'>
  690. <TYPE>simple</TYPE>
  691. <NAME>--diag_suppress</NAME>
  692. <ALIAS>-pds</ALIAS>
  693. <ARG>
  694. <TYPE>STRINGLIST</TYPE>
  695. <STATUS>required</STATUS>
  696. <DESCRIPTION>id</DESCRIPTION>
  697. </ARG>
  698. <TIP>Suppress diagnostic &lt;id&gt;</TIP>
  699. <HELP>Suppress diagnostic &lt;id&gt;</HELP>
  700. </OPTION>
  701. <OPTION tag='DIAG_WARNING'>
  702. <TYPE>simple</TYPE>
  703. <NAME>--diag_warning</NAME>
  704. <ALIAS>-pdsw</ALIAS>
  705. <ARG>
  706. <TYPE>STRINGLIST</TYPE>
  707. <STATUS>required</STATUS>
  708. <DESCRIPTION>id</DESCRIPTION>
  709. </ARG>
  710. <TIP>Treat diagnostic &lt;id&gt; as warning</TIP>
  711. <HELP>Treat diagnostic &lt;id&gt; as warning</HELP>
  712. </OPTION>
  713. <OPTION tag='DIAG_WRAP'>
  714. <TYPE>simple</TYPE>
  715. <NAME>--diag_wrap</NAME>
  716. <ARG>
  717. <TYPE>ONEOF</TYPE>
  718. <STATUS>optional</STATUS>
  719. <DESCRIPTION>on,off</DESCRIPTION>
  720. <ONEOF>on</ONEOF>
  721. <ONEOF>off</ONEOF>
  722. <DEFAULT>on</DEFAULT>
  723. </ARG>
  724. <TIP>Wrap diagnostic messages</TIP>
  725. <HELP>Set diagnostic messages to wrap at 79 columns (on) or not (off).</HELP>
  726. </OPTION>
  727. <OPTION tag='DISABLE_INTERRUPTS_AROUND_HW_MPY'>
  728. <TYPE>simple</TYPE>
  729. <NAME>--disable_interrupts_around_hw_mpy</NAME>
  730. <ARG>
  731. <TYPE>ONEOF</TYPE>
  732. <STATUS>optional</STATUS>
  733. <DESCRIPTION>on,off</DESCRIPTION>
  734. <ONEOF>on</ONEOF>
  735. <ONEOF>off</ONEOF>
  736. <DEFAULT>on</DEFAULT>
  737. </ARG>
  738. <TIP>Inline hardware multiply version of RTS mpy routine</TIP>
  739. <HELP>When inlining hardware multiply routines, (on) disable interrupts around the hardware multiply, or (off) leave interrupts enabled during hw mpy.</HELP>
  740. </OPTION>
  741. <OPTION tag='DISPLAY_ERROR_NUMBER'>
  742. <TYPE>simple</TYPE>
  743. <NAME>--display_error_number</NAME>
  744. <ALIAS>-pden</ALIAS>
  745. <TIP>Emit diagnostic identifier numbers</TIP>
  746. <HELP>Emit the diagnostic identifier numbers along with diagnostic messages. These identifiers can be used with options such as -pds to suppress a specific diagnostic.</HELP>
  747. </OPTION>
  748. <OPTION tag='EMBEDDED_CPP'>
  749. <TYPE>simple</TYPE>
  750. <NAME>--embedded_cpp</NAME>
  751. <ALIAS>-pe</ALIAS>
  752. <TIP>Embedded C++</TIP>
  753. <HELP>Enable support for embedded C++</HELP>
  754. <RESETS>CPLUSPLUS03</RESETS>
  755. </OPTION>
  756. <OPTION tag='EMIT_WARNINGS_AS_ERRORS'>
  757. <TYPE>simple</TYPE>
  758. <NAME>--emit_warnings_as_errors</NAME>
  759. <ALIAS>-pdew</ALIAS>
  760. <TIP>Treat warnings as errors</TIP>
  761. <HELP>Treat warnings as errors</HELP>
  762. <CONFLICT>NO_WARNINGS</CONFLICT>
  763. </OPTION>
  764. <OPTION tag='ENTRY_HOOK'>
  765. <TYPE>simple</TYPE>
  766. <NAME>--entry_hook</NAME>
  767. <ARG>
  768. <TYPE>STRING</TYPE>
  769. <STATUS>optional</STATUS>
  770. <DESCRIPTION>hook_function_name</DESCRIPTION>
  771. <DEFAULT>__entry_hook</DEFAULT>
  772. </ARG>
  773. <TIP>Insert this call at entry to each function</TIP>
  774. <HELP>Insert this call at entry to each function</HELP>
  775. </OPTION>
  776. <OPTION tag='ENTRY_PARM'>
  777. <TYPE>simple</TYPE>
  778. <NAME>--entry_parm</NAME>
  779. <ARG>
  780. <TYPE>ONEOF</TYPE>
  781. <STATUS>required</STATUS>
  782. <DESCRIPTION>name,address,none</DESCRIPTION>
  783. <ONEOF>name</ONEOF>
  784. <ONEOF>address</ONEOF>
  785. <ONEOF>none</ONEOF>
  786. </ARG>
  787. <TIP>Pass caller&apos;s name or address to entry hook</TIP>
  788. <HELP>Pass caller&apos;s name or address to entry hook</HELP>
  789. </OPTION>
  790. <OPTION tag='EXCEPTIONS'>
  791. <TYPE>simple</TYPE>
  792. <NAME>--exceptions</NAME>
  793. <TIP>Enable C++ exception handling</TIP>
  794. <HELP>Enable C++ exception handling</HELP>
  795. <CHAIN>
  796. <TAG>RTTI</TAG>
  797. <TEXT>--rtti</TEXT>
  798. </CHAIN>
  799. <CHAIN>
  800. <TAG>DISABLE_CUSTOM_CALL_CONV</TAG>
  801. <TEXT>--disable_custom_call_conv</TEXT>
  802. </CHAIN>
  803. </OPTION>
  804. <OPTION tag='EXIT_HOOK'>
  805. <TYPE>simple</TYPE>
  806. <NAME>--exit_hook</NAME>
  807. <ARG>
  808. <TYPE>STRING</TYPE>
  809. <STATUS>optional</STATUS>
  810. <DESCRIPTION>hook_function_name</DESCRIPTION>
  811. <DEFAULT>__exit_hook</DEFAULT>
  812. </ARG>
  813. <TIP>Insert this call at exit from each function</TIP>
  814. <HELP>Insert this call at exit from each function</HELP>
  815. </OPTION>
  816. <OPTION tag='EXIT_PARM'>
  817. <TYPE>simple</TYPE>
  818. <NAME>--exit_parm</NAME>
  819. <ARG>
  820. <TYPE>ONEOF</TYPE>
  821. <STATUS>required</STATUS>
  822. <DESCRIPTION>name,address,none</DESCRIPTION>
  823. <ONEOF>name</ONEOF>
  824. <ONEOF>address</ONEOF>
  825. <ONEOF>none</ONEOF>
  826. </ARG>
  827. <TIP>Pass caller&apos;s name or address to exit hook</TIP>
  828. <HELP>Pass caller&apos;s name or address to exit hook</HELP>
  829. </OPTION>
  830. <OPTION tag='EXTERN_C_CAN_THROW'>
  831. <TYPE>simple</TYPE>
  832. <NAME>--extern_c_can_throw</NAME>
  833. <TIP>Allow extern C functions to propagate exceptions</TIP>
  834. <HELP>This option is only supported under EABI for table-driven exception handling (TDEH). This option is valid only when `--exceptions` is also present. This option allows a function defined in C++ with extern `C` linkage to propagate exceptions.</HELP>
  835. </OPTION>
  836. <OPTION tag='FLOAT_OPERATIONS_ALLOWED'>
  837. <TYPE>simple</TYPE>
  838. <NAME>--float_operations_allowed</NAME>
  839. <ARG>
  840. <TYPE>ONEOF</TYPE>
  841. <STATUS>required</STATUS>
  842. <DESCRIPTION>all,32,64,none</DESCRIPTION>
  843. <ONEOF>all</ONEOF>
  844. <ONEOF>32</ONEOF>
  845. <ONEOF>64</ONEOF>
  846. <ONEOF>none</ONEOF>
  847. </ARG>
  848. <TIP>Floating point precision accepted by compiler</TIP>
  849. <HELP>Control the acceptable precision of floating point operations. The default is all.</HELP>
  850. </OPTION>
  851. <OPTION tag='FP_REASSOC'>
  852. <TYPE>simple</TYPE>
  853. <NAME>--fp_reassoc</NAME>
  854. <ARG>
  855. <TYPE>ONEOF</TYPE>
  856. <STATUS>required</STATUS>
  857. <DESCRIPTION>on,off</DESCRIPTION>
  858. <ONEOF>on</ONEOF>
  859. <ONEOF>off</ONEOF>
  860. <DEFAULT>off</DEFAULT>
  861. </ARG>
  862. <TIP>Allow reassociation of FP arithmetic</TIP>
  863. <HELP>Set to on to allow reassociation of floating point arithmetic even in cases where the reassociation will result in a slightly different answer.</HELP>
  864. </OPTION>
  865. <OPTION tag='GCC'>
  866. <TYPE>simple</TYPE>
  867. <NAME>--gcc</NAME>
  868. <TIP>Enable support for GCC extensions (DEPRECATED)</TIP>
  869. <HELP>This option enables the support for GCC extensions. This feature is incompatible with strict ANSI mode.</HELP>
  870. <CHAIN>
  871. <TAG>RELAXED_ANSI</TAG>
  872. <TEXT>--relaxed_ansi</TEXT>
  873. </CHAIN>
  874. <CONFLICT>STRICT_ANSI</CONFLICT>
  875. </OPTION>
  876. <OPTION tag='GEN_ACP_RAW'>
  877. <TYPE>simple</TYPE>
  878. <NAME>--gen_acp_raw</NAME>
  879. <ALIAS>-pl</ALIAS>
  880. <TIP>Output raw listing to .rl file</TIP>
  881. <HELP>Output raw listing to .rl file</HELP>
  882. </OPTION>
  883. <OPTION tag='GEN_ACP_XREF'>
  884. <TYPE>simple</TYPE>
  885. <NAME>--gen_acp_xref</NAME>
  886. <ALIAS>-px</ALIAS>
  887. <TIP>Output xref listing to .crl file</TIP>
  888. <HELP>Output xref listing to .crl file</HELP>
  889. </OPTION>
  890. <OPTION tag='GEN_DATA_SUBSECTIONS'>
  891. <TYPE>simple</TYPE>
  892. <NAME>--gen_data_subsections</NAME>
  893. <ARG>
  894. <TYPE>ONEOF</TYPE>
  895. <STATUS>required</STATUS>
  896. <DESCRIPTION>on,off</DESCRIPTION>
  897. <ONEOF>on</ONEOF>
  898. <ONEOF>off</ONEOF>
  899. </ARG>
  900. <TIP>Place structs and arrays in separate subsections</TIP>
  901. <HELP>Placing structs and arrays in subsections allows the linker to remove unused data at link time. If the option is not specified, the default behavior is on</HELP>
  902. <OVERRIDES>GEN_FUNC_SUBSECTIONS</OVERRIDES>
  903. <OVERRIDES>USE_DEAD_FUNCS_LIST</OVERRIDES>
  904. <OVERRIDES>RAMFUNC</OVERRIDES>
  905. </OPTION>
  906. <OPTION tag='GEN_OPT_INFO'>
  907. <TYPE>simple</TYPE>
  908. <NAME>--gen_opt_info</NAME>
  909. <ALIAS>-on</ALIAS>
  910. <ARG>
  911. <TYPE>RANGE</TYPE>
  912. <STATUS>required</STATUS>
  913. <DESCRIPTION>0-2</DESCRIPTION>
  914. <RANGE low='0' high='2'/>
  915. </ARG>
  916. <TIP>Generate optimizer information file at level [0-2]</TIP>
  917. <HELP>Set the optimizer information file level, or disable with 0. Level 1 includes basic information. Level 2 includes detailed information. The file will be created in the assembly directory if a custom asm directory is specified on the command line otherwise it will be created in the object file directory.</HELP>
  918. </OPTION>
  919. <OPTION tag='GEN_PROFILE_INFO'>
  920. <TYPE>simple</TYPE>
  921. <NAME>--gen_profile_info</NAME>
  922. <TIP>Generate profile feedback data</TIP>
  923. <HELP>Instrument the object code that is generated for a compilation with path profiling information. The compiler will annotate the code that is generated for an application so that, when executed, the application can generate information about which code paths were executed and how often. This profile data can then be used by subsequent compiles to analyze code coverage or call graph information to assist with subsequent development.</HELP>
  924. </OPTION>
  925. <OPTION tag='GLOBAL_REGISTER'>
  926. <TYPE>simple</TYPE>
  927. <NAME>--global_register</NAME>
  928. <ARG>
  929. <TYPE>ONEOFLIST</TYPE>
  930. <STATUS>required</STATUS>
  931. <DESCRIPTION>r4,r5</DESCRIPTION>
  932. <ONEOF>r4</ONEOF>
  933. <ONEOF>r5</ONEOF>
  934. </ARG>
  935. <TIP>Reserve a register for use by the user.</TIP>
  936. <HELP>Reserve the specified register for use by the user. It will not be used by the compiler. If only reserving one global register it is preferable for performance reasons to reserve r4.</HELP>
  937. </OPTION>
  938. <OPTION tag='HELP'>
  939. <TYPE>cmdline</TYPE>
  940. <NAME>--help</NAME>
  941. <ALIAS>-h</ALIAS>
  942. <TIP>Show help screen</TIP>
  943. <HELP>Show usage information. When followed by another option or a phrase display that option&apos;s detailed information, or search for options related to that phrase.</HELP>
  944. </OPTION>
  945. <OPTION tag='INCLUDE_FILE'>
  946. <TYPE>simple</TYPE>
  947. <NAME>--include_file</NAME>
  948. <ALIAS>-ahi</ALIAS>
  949. <ARG>
  950. <TYPE>STRINGLIST</TYPE>
  951. <STATUS>required</STATUS>
  952. <DESCRIPTION>filename</DESCRIPTION>
  953. </ARG>
  954. <TIP>Simulate source &apos;.include filename&apos;</TIP>
  955. <HELP>Simulate source &apos;.include filename&apos;</HELP>
  956. </OPTION>
  957. <OPTION tag='INCLUDE_PATH'>
  958. <TYPE>simple</TYPE>
  959. <NAME>--include_path</NAME>
  960. <ALIAS>-I</ALIAS>
  961. <ARG>
  962. <TYPE>STRINGLIST</TYPE>
  963. <STATUS>required</STATUS>
  964. <DESCRIPTION>dir</DESCRIPTION>
  965. </ARG>
  966. <TIP>Add dir to #include search path</TIP>
  967. <HELP>Add the specified dir(ectory) to the #include file search path list.</HELP>
  968. </OPTION>
  969. <OPTION tag='ISSUE_REMARKS'>
  970. <TYPE>simple</TYPE>
  971. <NAME>--issue_remarks</NAME>
  972. <ALIAS>-pdr</ALIAS>
  973. <TIP>Issue remarks</TIP>
  974. <HELP>Issue remarks, which are normally suppressed.</HELP>
  975. </OPTION>
  976. <OPTION tag='KEEP_ASM'>
  977. <TYPE>simple</TYPE>
  978. <NAME>--keep_asm</NAME>
  979. <PREFERREDALIAS>-k</PREFERREDALIAS>
  980. <TIP>Keep the generated assembly language (.asm) file</TIP>
  981. <HELP>Keep the generated assembly language (.asm) file</HELP>
  982. </OPTION>
  983. <OPTION tag='KEEP_UNNEEDED_STATICS'>
  984. <TYPE>simple</TYPE>
  985. <NAME>--keep_unneeded_statics</NAME>
  986. <TIP>Do not delete unreferenced static variables</TIP>
  987. <HELP>The parser, by default, will remark about and then remove any unreferenced static variables. This option will keep the parser from deleting unreferenced static variables and any static functions that are, in turn referenced by these variables.</HELP>
  988. </OPTION>
  989. <OPTION tag='KR_COMPATIBLE'>
  990. <TYPE>simple</TYPE>
  991. <NAME>--kr_compatible</NAME>
  992. <ALIAS>-pk</ALIAS>
  993. <TIP>K &amp; R compatibility</TIP>
  994. <HELP>Enable K &amp; R C compatibility.</HELP>
  995. <RESETS>C89</RESETS>
  996. <RESETS>C99</RESETS>
  997. </OPTION>
  998. <OPTION tag='LARGE_MEMORY_MODEL'>
  999. <TYPE>simple</TYPE>
  1000. <NAME>--large_memory_model</NAME>
  1001. <ALIAS>-ml</ALIAS>
  1002. <TIP>Use large-data memory model</TIP>
  1003. <HELP>Build using a large-data model. This allows data to be placed in memory locations above the 64k boundary and individual objects can be larger than 64k in size. Only valid for MSP430X devices.</HELP>
  1004. <CHAIN>
  1005. <TAG>MEM_MODEL__DATA</TAG>
  1006. <TEXT>--mem_model:data=huge</TEXT>
  1007. </CHAIN>
  1008. </OPTION>
  1009. <OPTION tag='LIST_DIRECTORY'>
  1010. <TYPE>simple</TYPE>
  1011. <NAME>--list_directory</NAME>
  1012. <ALIAS>-ff</ALIAS>
  1013. <ARG>
  1014. <TYPE>STRING</TYPE>
  1015. <STATUS>required</STATUS>
  1016. <DESCRIPTION>dir</DESCRIPTION>
  1017. </ARG>
  1018. <TIP>Listing/xref file directory (default is .obj dir)</TIP>
  1019. <HELP>Listing/xref file directory (default is .obj dir)</HELP>
  1020. <CHAIN>
  1021. <TAG>ASM_LISTING</TAG>
  1022. <TEXT>--asm_listing</TEXT>
  1023. </CHAIN>
  1024. </OPTION>
  1025. <OPTION tag='LISTING_EXTENSION'>
  1026. <TYPE>simple</TYPE>
  1027. <NAME>--listing_extension</NAME>
  1028. <ALIAS>-es</ALIAS>
  1029. <ARG>
  1030. <TYPE>STRING</TYPE>
  1031. <STATUS>required</STATUS>
  1032. <DESCRIPTION>.ext</DESCRIPTION>
  1033. </ARG>
  1034. <TIP>Extension for listing files (default is .lst)</TIP>
  1035. <HELP>Extension for listing files (default is .lst)</HELP>
  1036. </OPTION>
  1037. <OPTION tag='LLOPT'>
  1038. <TYPE>simple</TYPE>
  1039. <NAME>--llopt</NAME>
  1040. <ARG>
  1041. <TYPE>ONEOF</TYPE>
  1042. <STATUS>required</STATUS>
  1043. <DESCRIPTION>0,1,2,3</DESCRIPTION>
  1044. <ONEOF>0</ONEOF>
  1045. <ONEOF>1</ONEOF>
  1046. <ONEOF>2</ONEOF>
  1047. <ONEOF>3</ONEOF>
  1048. </ARG>
  1049. <TIP>LLVM Optimization Level</TIP>
  1050. <HELP>Run LLVM with specified optimization level</HELP>
  1051. </OPTION>
  1052. <OPTION tag='MISRA_ADVISORY'>
  1053. <TYPE>simple</TYPE>
  1054. <NAME>--misra_advisory</NAME>
  1055. <ARG>
  1056. <TYPE>ONEOF</TYPE>
  1057. <STATUS>required</STATUS>
  1058. <DESCRIPTION>error,warning,remark,suppress</DESCRIPTION>
  1059. <ONEOF>error</ONEOF>
  1060. <ONEOF>warning</ONEOF>
  1061. <ONEOF>remark</ONEOF>
  1062. <ONEOF>suppress</ONEOF>
  1063. </ARG>
  1064. <TIP>Set severity of MISRA &apos;advisory&apos; rule class</TIP>
  1065. <HELP>Set diagnostic severity level for the MISRA advisory class of rules. See the --check_misra option for further information.</HELP>
  1066. </OPTION>
  1067. <OPTION tag='MISRA_REQUIRED'>
  1068. <TYPE>simple</TYPE>
  1069. <NAME>--misra_required</NAME>
  1070. <ARG>
  1071. <TYPE>ONEOF</TYPE>
  1072. <STATUS>required</STATUS>
  1073. <DESCRIPTION>error,warning,remark,suppress</DESCRIPTION>
  1074. <ONEOF>error</ONEOF>
  1075. <ONEOF>warning</ONEOF>
  1076. <ONEOF>remark</ONEOF>
  1077. <ONEOF>suppress</ONEOF>
  1078. </ARG>
  1079. <TIP>Set severity of MISRA &apos;required&apos; rule class</TIP>
  1080. <HELP>Set the diagnostic severity level for the MISRA required class of rules. See the --check_misra option for further information.</HELP>
  1081. </OPTION>
  1082. <OPTION tag='MULTIBYTE_CHARS'>
  1083. <TYPE>simple</TYPE>
  1084. <NAME>--multibyte_chars</NAME>
  1085. <ALIAS>-pc</ALIAS>
  1086. <TIP>Multibyte character support</TIP>
  1087. <HELP>Enable parser support for multibyte character sequences in comments, string literals, and character constants.</HELP>
  1088. </OPTION>
  1089. <OPTION tag='NEAR_DATA'>
  1090. <TYPE>simple</TYPE>
  1091. <NAME>--near_data</NAME>
  1092. <ARG>
  1093. <TYPE>ONEOF</TYPE>
  1094. <STATUS>required</STATUS>
  1095. <DESCRIPTION>globals,none</DESCRIPTION>
  1096. <ONEOF>globals</ONEOF>
  1097. <ONEOF>none</ONEOF>
  1098. <DEFAULT>globals</DEFAULT>
  1099. </ARG>
  1100. <TIP>Indicates what data must be near</TIP>
  1101. <HELP>Indicates whether certain types of data are guaranteed to be in the near 64k of memory and allows the compiler to optimize performance based on this information. Globals indicates that all global and static variables will be located in near memory. This option only applies to MSP430X devices.</HELP>
  1102. </OPTION>
  1103. <OPTION tag='NO_CONST_CLINK'>
  1104. <TYPE>simple</TYPE>
  1105. <NAME>--no_const_clink</NAME>
  1106. <HIDE_OPTION>true</HIDE_OPTION>
  1107. <DEPRECATE_OPTION>
  1108. <SEVERITY>3</SEVERITY>
  1109. <DIAGNOSTIC>The --no_const_clink option is deprecated. The functionality is controlled by --gen_data_subsections</DIAGNOSTIC>
  1110. </DEPRECATE_OPTION>
  1111. <TIP>Do not generate .clink for .const sections</TIP>
  1112. <HELP>Do not generate .clink directives for const global arrays. By default these arrays are placed in a .const subsection and conditionally linked.</HELP>
  1113. <CHAIN>
  1114. <TAG>GEN_DATA_SUBSECTIONS</TAG>
  1115. <TEXT>--gen_data_subsections=off</TEXT>
  1116. </CHAIN>
  1117. </OPTION>
  1118. <OPTION tag='NO_INLINING'>
  1119. <TYPE>simple</TYPE>
  1120. <NAME>--no_inlining</NAME>
  1121. <ALIAS>-pi</ALIAS>
  1122. <TIP>Ignore inline keyword</TIP>
  1123. <HELP>Ignore the inline keyword while parsing.</HELP>
  1124. </OPTION>
  1125. <OPTION tag='NO_INTRINSICS'>
  1126. <TYPE>simple</TYPE>
  1127. <NAME>--no_intrinsics</NAME>
  1128. <ALIAS>-pn</ALIAS>
  1129. <TIP>Disable intrinsic functions</TIP>
  1130. <HELP>Disable intrinsic functions in the parser.</HELP>
  1131. </OPTION>
  1132. <OPTION tag='NO_WARNINGS'>
  1133. <TYPE>simple</TYPE>
  1134. <NAME>--no_warnings</NAME>
  1135. <ALIAS>-pdw</ALIAS>
  1136. <TIP>Suppress warnings</TIP>
  1137. <HELP>Suppress all parser warnings.</HELP>
  1138. <CONFLICT>EMIT_WARNINGS_AS_ERRORS</CONFLICT>
  1139. </OPTION>
  1140. <OPTION tag='OBJ_DIRECTORY'>
  1141. <TYPE>simple</TYPE>
  1142. <NAME>--obj_directory</NAME>
  1143. <ALIAS>-fr</ALIAS>
  1144. <ARG>
  1145. <TYPE>STRING</TYPE>
  1146. <STATUS>required</STATUS>
  1147. <DESCRIPTION>dir</DESCRIPTION>
  1148. </ARG>
  1149. <TIP>Object file directory (default is .)</TIP>
  1150. <HELP>Object file directory (default is .)</HELP>
  1151. </OPTION>
  1152. <OPTION tag='OBJ_EXTENSION'>
  1153. <TYPE>simple</TYPE>
  1154. <NAME>--obj_extension</NAME>
  1155. <ALIAS>-eo</ALIAS>
  1156. <ARG>
  1157. <TYPE>STRING</TYPE>
  1158. <STATUS>required</STATUS>
  1159. <DESCRIPTION>.ext</DESCRIPTION>
  1160. </ARG>
  1161. <TIP>Extension for object files (default is .obj)</TIP>
  1162. <HELP>Extension for object files (default is .obj)</HELP>
  1163. <CONFLICT>OUTPUT_FILE</CONFLICT>
  1164. </OPTION>
  1165. <OPTION tag='OBJ_FILE'>
  1166. <TYPE>simple</TYPE>
  1167. <NAME>--obj_file</NAME>
  1168. <ALIAS>-fo</ALIAS>
  1169. <ARG>
  1170. <TYPE>STRINGLIST</TYPE>
  1171. <STATUS>required</STATUS>
  1172. <DESCRIPTION>filename</DESCRIPTION>
  1173. </ARG>
  1174. <TIP>File is an object file (default for .obj)</TIP>
  1175. <HELP>File is an object file (default for .obj)</HELP>
  1176. </OPTION>
  1177. <OPTION tag='OPT_FOR_SPEED'>
  1178. <TYPE>simple</TYPE>
  1179. <NAME>--opt_for_speed</NAME>
  1180. <ALIAS>-mf</ALIAS>
  1181. <ARG>
  1182. <TYPE range_type='slider'>RANGE</TYPE>
  1183. <STATUS>optional</STATUS>
  1184. <DESCRIPTION>0-5</DESCRIPTION>
  1185. <RANGE low='0' low_description='size' high='5' high_description='speed'/>
  1186. <DEFAULT>4</DEFAULT>
  1187. </ARG>
  1188. <TIP>Speed vs. size trade-offs </TIP>
  1189. <HELP>Control speed vs. size trade-offs in optimization. A value of 5 indicates fully optimizing for speed with a potentially large code size penalty, while a value of 0 indicates fully optimizing for size. Values between 0 and 5 indicate trade-offs between the two extremes.</HELP>
  1190. </OPTION>
  1191. <OPTION tag='OPT_LEVEL'>
  1192. <TYPE>simple</TYPE>
  1193. <NAME>--opt_level</NAME>
  1194. <PREFERREDALIAS>-O</PREFERREDALIAS>
  1195. <ARG>
  1196. <TYPE>ONEOF</TYPE>
  1197. <STATUS>optional</STATUS>
  1198. <DESCRIPTION>off,0,1,2,3,4</DESCRIPTION>
  1199. <ONEOF>off</ONEOF>
  1200. <ONEOF description='Register Optimizations'>0</ONEOF>
  1201. <ONEOF description='Local Optimizations'>1</ONEOF>
  1202. <ONEOF description='Global Optimizations'>2</ONEOF>
  1203. <ONEOF description='Interprocedure Optimizations'>3</ONEOF>
  1204. <ONEOF description='Whole Program Optimizations'>4</ONEOF>
  1205. <DEFAULT>2</DEFAULT>
  1206. </ARG>
  1207. <TIP>Optimization level</TIP>
  1208. <HELP>Set compiler optimization level.
  1209. Level 0 includes register optimizations. Level 1 adds local optimizations. Level 2 further adds global optimizations. Level 3 further adds interprocedure optimizations. Level 4 adds whole program optimizations. Level 4 must be passed to the linker for the optimizations to take affect.</HELP>
  1210. </OPTION>
  1211. <OPTION tag='OPTIMIZE_WITH_DEBUG'>
  1212. <TYPE>simple</TYPE>
  1213. <NAME>--optimize_with_debug</NAME>
  1214. <ALIAS>-mn</ALIAS>
  1215. <ARG>
  1216. <TYPE>ONEOF</TYPE>
  1217. <STATUS>optional</STATUS>
  1218. <DESCRIPTION>on,off</DESCRIPTION>
  1219. <ONEOF>on</ONEOF>
  1220. <ONEOF>off</ONEOF>
  1221. <DEFAULT>on</DEFAULT>
  1222. </ARG>
  1223. <TIP>Optimize fully in the presence of debug (DEPRECATED)</TIP>
  1224. <HELP>Optimize fully in the presence of debug (DEPRECATED)</HELP>
  1225. </OPTION>
  1226. <OPTION tag='OUTPUT_ALL_SYMS'>
  1227. <TYPE>simple</TYPE>
  1228. <NAME>--output_all_syms</NAME>
  1229. <ALIAS>-as</ALIAS>
  1230. <TIP>Keep local symbols in output file</TIP>
  1231. <HELP>Keep local symbols in output file</HELP>
  1232. </OPTION>
  1233. <OPTION tag='OUTPUT_FILE'>
  1234. <TYPE>simple</TYPE>
  1235. <NAME>--output_file</NAME>
  1236. <ALIAS>-fe</ALIAS>
  1237. <ARG>
  1238. <TYPE>STRING</TYPE>
  1239. <STATUS>required</STATUS>
  1240. <DESCRIPTION>filename</DESCRIPTION>
  1241. </ARG>
  1242. <TIP>Compilation output file name, can override --obj_directory</TIP>
  1243. <HELP>Compilation output file name, can override --obj_directory</HELP>
  1244. <CONFLICT>OBJ_EXTENSION</CONFLICT>
  1245. </OPTION>
  1246. <OPTION tag='PENDING_INSTANTIATIONS'>
  1247. <TYPE>simple</TYPE>
  1248. <NAME>--pending_instantiations</NAME>
  1249. <ARG>
  1250. <TYPE>NUMBER</TYPE>
  1251. <STATUS>required</STATUS>
  1252. <DESCRIPTION>#</DESCRIPTION>
  1253. </ARG>
  1254. <TIP>limit pending template instantiations</TIP>
  1255. <HELP>The number of template instantiations that may be in progress at any given time. Use 0 to specify an unlimited number.</HELP>
  1256. </OPTION>
  1257. <OPTION tag='PLAIN_CHAR'>
  1258. <TYPE>simple</TYPE>
  1259. <NAME>--plain_char</NAME>
  1260. <ARG>
  1261. <TYPE>ONEOF</TYPE>
  1262. <STATUS>required</STATUS>
  1263. <DESCRIPTION>signed,unsigned</DESCRIPTION>
  1264. <ONEOF>signed</ONEOF>
  1265. <ONEOF>unsigned</ONEOF>
  1266. <DEFAULT>unsigned</DEFAULT>
  1267. </ARG>
  1268. <TIP>Specify how to treat plain chars (signed/unsigned)</TIP>
  1269. <HELP>Specify how to treat plain chars (signed/unsigned)</HELP>
  1270. </OPTION>
  1271. <OPTION tag='PP_DIRECTORY'>
  1272. <TYPE>cmdline</TYPE>
  1273. <NAME>--pp_directory</NAME>
  1274. <ARG>
  1275. <TYPE>STRING</TYPE>
  1276. <STATUS>required</STATUS>
  1277. <DESCRIPTION>dir</DESCRIPTION>
  1278. </ARG>
  1279. <TIP>Preprocessor file directory (default is .)</TIP>
  1280. <HELP>Place preprocessor output files in specified directory. The directory must exist prior to compiler invocation.</HELP>
  1281. </OPTION>
  1282. <OPTION tag='PREINCLUDE'>
  1283. <TYPE>simple</TYPE>
  1284. <NAME>--preinclude</NAME>
  1285. <ARG>
  1286. <TYPE>STRINGLIST</TYPE>
  1287. <STATUS>required</STATUS>
  1288. <DESCRIPTION>filename</DESCRIPTION>
  1289. </ARG>
  1290. <TIP>Specify a preinclude file</TIP>
  1291. <HELP>Include the source code of the indicated file at the beginning of the compilation. This can be used to establish standard macro definitions, etc. The file name is searched for in the directories on the include search list. The files are processed in the order in which they were specified.</HELP>
  1292. </OPTION>
  1293. <OPTION tag='PREPROC_DEPENDENCY'>
  1294. <TYPE>cmdline</TYPE>
  1295. <NAME>--preproc_dependency</NAME>
  1296. <ALIAS>-ppd</ALIAS>
  1297. <ARG>
  1298. <TYPE>STRING</TYPE>
  1299. <STATUS>optional</STATUS>
  1300. <DESCRIPTION>filename</DESCRIPTION>
  1301. </ARG>
  1302. <TIP>Generate include file dependency information</TIP>
  1303. <HELP>Generate a dependency list for the source file into the file &lt;filename&gt;.pp and then exit. Optionally, name the output file. The output will include all files included in the source file as well as any of the files included. Also see the -ppa option to continue compilation after generating the dependency list (similar to gcc).</HELP>
  1304. <CONFLICT>PREPROC_ONLY</CONFLICT>
  1305. <CONFLICT>PREPROC_WITH_LINE</CONFLICT>
  1306. <CONFLICT>PREPROC_WITH_COMMENT</CONFLICT>
  1307. <OVERRIDES>PREPROC_INCLUDES</OVERRIDES>
  1308. <OVERRIDES>PREPROC_MACROS</OVERRIDES>
  1309. </OPTION>
  1310. <OPTION tag='PREPROC_INCLUDES'>
  1311. <TYPE>cmdline</TYPE>
  1312. <NAME>--preproc_includes</NAME>
  1313. <ALIAS>-ppi</ALIAS>
  1314. <ARG>
  1315. <TYPE>STRING</TYPE>
  1316. <STATUS>optional</STATUS>
  1317. <DESCRIPTION>filename</DESCRIPTION>
  1318. </ARG>
  1319. <TIP>Generate first-level include file list</TIP>
  1320. <HELP>Generate an include list for the source file into the file &lt;filename&gt;.pp and then exit. Optionally, name the output file. The output will include only those files directly included by the source file. Also see the -ppa option to continue compilation after generating the include list (similar to gcc).</HELP>
  1321. <CONFLICT>PREPROC_WITH_LINE</CONFLICT>
  1322. <CONFLICT>PREPROC_ONLY</CONFLICT>
  1323. <CONFLICT>PREPROC_WITH_COMMENT</CONFLICT>
  1324. <OVERRIDES>PREPROC_DEPENDENCY</OVERRIDES>
  1325. <OVERRIDES>PREPROC_MACROS</OVERRIDES>
  1326. </OPTION>
  1327. <OPTION tag='PREPROC_MACROS'>
  1328. <TYPE>cmdline</TYPE>
  1329. <NAME>--preproc_macros</NAME>
  1330. <ALIAS>-ppm</ALIAS>
  1331. <ARG>
  1332. <TYPE>STRING</TYPE>
  1333. <STATUS>optional</STATUS>
  1334. <DESCRIPTION>filename</DESCRIPTION>
  1335. </ARG>
  1336. <TIP>Generate list of pre- &amp; user-defined macros</TIP>
  1337. <HELP>Generate a list of predefined and user defined macros for the source file into the file &lt;filename&gt;.pp and then exit. Optionally, name the output file. The output will include only those files directly included by the source file. Also see the -ppa option to continue compilation after generating the macro list (similar to gcc).</HELP>
  1338. <CONFLICT>PREPROC_WITH_COMMENT</CONFLICT>
  1339. <CONFLICT>PREPROC_ONLY</CONFLICT>
  1340. <CONFLICT>PREPROC_WITH_LINE</CONFLICT>
  1341. <OVERRIDES>PREPROC_DEPENDENCY</OVERRIDES>
  1342. <OVERRIDES>PREPROC_INCLUDES</OVERRIDES>
  1343. </OPTION>
  1344. <OPTION tag='PREPROC_ONLY'>
  1345. <TYPE>cmdline</TYPE>
  1346. <NAME>--preproc_only</NAME>
  1347. <ALIAS>-ppo</ALIAS>
  1348. <TIP>Preprocess only</TIP>
  1349. <HELP>Only preprocess the source file(s) and then stop.</HELP>
  1350. <CONFLICT>PREPROC_INCLUDES</CONFLICT>
  1351. <CONFLICT>PREPROC_DEPENDENCY</CONFLICT>
  1352. <CONFLICT>PREPROC_MACROS</CONFLICT>
  1353. </OPTION>
  1354. <OPTION tag='PREPROC_WITH_COMMENT'>
  1355. <TYPE>cmdline</TYPE>
  1356. <NAME>--preproc_with_comment</NAME>
  1357. <ALIAS>-ppc</ALIAS>
  1358. <TIP>Preprocess only; maintain comments</TIP>
  1359. <HELP>Only preprocess the source file(s) and then stop; maintain source comments in the output.</HELP>
  1360. <CONFLICT>PREPROC_DEPENDENCY</CONFLICT>
  1361. <CONFLICT>PREPROC_MACROS</CONFLICT>
  1362. <CONFLICT>PREPROC_INCLUDES</CONFLICT>
  1363. </OPTION>
  1364. <OPTION tag='PREPROC_WITH_COMPILE'>
  1365. <TYPE>cmdline</TYPE>
  1366. <NAME>--preproc_with_compile</NAME>
  1367. <ALIAS>-ppa</ALIAS>
  1368. <TIP>Continue compilation after using -pp&lt;X&gt; options.</TIP>
  1369. <HELP>This option instructs the compiler to additionally continue compilation of the source file (rather than exiting) after generating a pre-processing .pp output file such as those generated by -ppd (dependencies) -ppi (included files), or -ppm (macros).</HELP>
  1370. </OPTION>
  1371. <OPTION tag='PREPROC_WITH_LINE'>
  1372. <TYPE>cmdline</TYPE>
  1373. <NAME>--preproc_with_line</NAME>
  1374. <ALIAS>-ppl</ALIAS>
  1375. <TIP>Preprocess only; maintain line directives</TIP>
  1376. <HELP>Only preprocess the source file(s) and then stop; maintain #line directives in the output..</HELP>
  1377. <CONFLICT>PREPROC_MACROS</CONFLICT>
  1378. <CONFLICT>PREPROC_DEPENDENCY</CONFLICT>
  1379. <CONFLICT>PREPROC_INCLUDES</CONFLICT>
  1380. </OPTION>
  1381. <OPTION tag='PRINTF_SUPPORT'>
  1382. <TYPE>simple</TYPE>
  1383. <NAME>--printf_support</NAME>
  1384. <ARG>
  1385. <TYPE>ONEOF</TYPE>
  1386. <STATUS>required</STATUS>
  1387. <DESCRIPTION>nofloat,minimal,full</DESCRIPTION>
  1388. <ONEOF>nofloat</ONEOF>
  1389. <ONEOF>minimal</ONEOF>
  1390. <ONEOF>full</ONEOF>
  1391. </ARG>
  1392. <TIP>Level of printf/scanf support required</TIP>
  1393. <HELP>The printf and scanf families of functions are large because they provide complex formatting capabilities, which may not be required in typical embedded applications. Use this option to reduce code size by eliminating features. This option must be specified at link time.
  1394. Use &apos;--printf_support=nofloat&apos; to exclude support for printing and scanning floating values. All format specifiers except %f, %F, %g, %G, %e, and %E are supported.
  1395. Use &apos;--printf_support=minimal&apos; to exclude support for width and precision flags and all format specifiers except %%, %d %o, %c, %s, and %x.</HELP>
  1396. </OPTION>
  1397. <OPTION tag='PROGRAM_LEVEL_COMPILE'>
  1398. <TYPE>cmdline</TYPE>
  1399. <NAME>--program_level_compile</NAME>
  1400. <ALIAS>-pm</ALIAS>
  1401. <TIP>Program mode compilation</TIP>
  1402. <HELP>Enable program mode compilation.</HELP>
  1403. </OPTION>
  1404. <OPTION tag='QUIET'>
  1405. <TYPE>simple</TYPE>
  1406. <NAME>--quiet</NAME>
  1407. <ALIAS>-q</ALIAS>
  1408. <TIP>Quiet Mode</TIP>
  1409. <HELP>Suppress common compiler non-diagnostic output. Remarks, errors and warnings will still be generated, as well as feature specific status.</HELP>
  1410. <RESETS>VERBOSE</RESETS>
  1411. <RESETS>SUPER_QUIET</RESETS>
  1412. </OPTION>
  1413. <OPTION tag='RAMFUNC'>
  1414. <TYPE>simple</TYPE>
  1415. <NAME>--ramfunc</NAME>
  1416. <ARG>
  1417. <TYPE>ONEOF</TYPE>
  1418. <STATUS>optional</STATUS>
  1419. <DESCRIPTION>on,off</DESCRIPTION>
  1420. <ONEOF>on</ONEOF>
  1421. <ONEOF>off</ONEOF>
  1422. <DEFAULT>on</DEFAULT>
  1423. </ARG>
  1424. <TIP>Run functions from RAM.</TIP>
  1425. <HELP>Indicate that each function will be run out of RAM. Functions will be placed in RAM and optimized for RAM execution. Equivalent to specifying __attribute__((ramfunc)) on all functions in the translation units compiled with this option. For additional information, see http://processors.wiki.ti.com/index.php/Ramfunc_Attribute</HELP>
  1426. <OVERRIDES>USE_DEAD_FUNCS_LIST</OVERRIDES>
  1427. <OVERRIDES>GEN_DATA_SUBSECTIONS</OVERRIDES>
  1428. <OVERRIDES>GEN_FUNC_SUBSECTIONS</OVERRIDES>
  1429. </OPTION>
  1430. <OPTION tag='RELAXED_ANSI'>
  1431. <TYPE>simple</TYPE>
  1432. <NAME>--relaxed_ansi</NAME>
  1433. <ALIAS>-pr</ALIAS>
  1434. <TIP>Relaxed parsing (non-strict ANSI)</TIP>
  1435. <HELP>Enable relaxed ANSI source parsing mode.</HELP>
  1436. <RESETS>STRICT_ANSI</RESETS>
  1437. </OPTION>
  1438. <OPTION tag='REMOVE_HOOKS_WHEN_INLINING'>
  1439. <TYPE>simple</TYPE>
  1440. <NAME>--remove_hooks_when_inlining</NAME>
  1441. <TIP>Remove entry/exit hooks from inlined functions</TIP>
  1442. <HELP>Remove the entry and exit hooks from the bodies of inlined functions.</HELP>
  1443. </OPTION>
  1444. <OPTION tag='RTTI'>
  1445. <TYPE>simple</TYPE>
  1446. <NAME>--rtti</NAME>
  1447. <ALIAS>-rtti</ALIAS>
  1448. <TIP>Support C++ run-time type information</TIP>
  1449. <HELP>Support C++ run-time type information</HELP>
  1450. </OPTION>
  1451. <OPTION tag='RUN_LINKER'>
  1452. <TYPE>cmdline</TYPE>
  1453. <NAME>--run_linker</NAME>
  1454. <ALIAS>-z</ALIAS>
  1455. <ARG>
  1456. <TYPE>STRING</TYPE>
  1457. <STATUS>optional</STATUS>
  1458. <DESCRIPTION>arguments</DESCRIPTION>
  1459. </ARG>
  1460. <TIP>Perform link using options following</TIP>
  1461. <HELP>After compiling all the source files, perform a link and pass all the options following this option to the linker.</HELP>
  1462. </OPTION>
  1463. <OPTION tag='SAT_REASSOC'>
  1464. <TYPE>simple</TYPE>
  1465. <NAME>--sat_reassoc</NAME>
  1466. <ARG>
  1467. <TYPE>ONEOF</TYPE>
  1468. <STATUS>required</STATUS>
  1469. <DESCRIPTION>on,off</DESCRIPTION>
  1470. <ONEOF>on</ONEOF>
  1471. <ONEOF>off</ONEOF>
  1472. <DEFAULT>off</DEFAULT>
  1473. </ARG>
  1474. <TIP>Allow reassociation of sat arithmetic</TIP>
  1475. <HELP>Set to on to allow reassociation of saturating arithmetic even in cases where the reassociation will cause saturation to occur differently.</HELP>
  1476. </OPTION>
  1477. <OPTION tag='SECTION_SIZES'>
  1478. <TYPE>simple</TYPE>
  1479. <NAME>--section_sizes</NAME>
  1480. <ARG>
  1481. <TYPE>ONEOF</TYPE>
  1482. <STATUS>optional</STATUS>
  1483. <DESCRIPTION>on,off</DESCRIPTION>
  1484. <ONEOF>on</ONEOF>
  1485. <ONEOF>off</ONEOF>
  1486. <DEFAULT>on</DEFAULT>
  1487. </ARG>
  1488. <TIP>Output section size summary information.</TIP>
  1489. <HELP>Output section size summary information for code, const, and data.</HELP>
  1490. </OPTION>
  1491. <OPTION tag='SET_ERROR_LIMIT'>
  1492. <TYPE>simple</TYPE>
  1493. <NAME>--set_error_limit</NAME>
  1494. <ALIAS>-pdel</ALIAS>
  1495. <ARG>
  1496. <TYPE>NUMBER</TYPE>
  1497. <STATUS>required</STATUS>
  1498. <DESCRIPTION>count</DESCRIPTION>
  1499. </ARG>
  1500. <TIP>Set error limit to &lt;count&gt;</TIP>
  1501. <HELP>Set error limit to &lt;count&gt;</HELP>
  1502. </OPTION>
  1503. <OPTION tag='SILICON_ERRATA'>
  1504. <TYPE>simple</TYPE>
  1505. <NAME>--silicon_errata</NAME>
  1506. <ARG>
  1507. <TYPE>ONEOFLIST</TYPE>
  1508. <STATUS>required</STATUS>
  1509. <DESCRIPTION>CPU12,CPU13,CPU15,CPU18,CPU19,CPU21,CPU22,CPU23,CPU40</DESCRIPTION>
  1510. <ONEOF>CPU12</ONEOF>
  1511. <ONEOF>CPU13</ONEOF>
  1512. <ONEOF>CPU15</ONEOF>
  1513. <ONEOF>CPU18</ONEOF>
  1514. <ONEOF>CPU19</ONEOF>
  1515. <ONEOF>CPU21</ONEOF>
  1516. <ONEOF>CPU22</ONEOF>
  1517. <ONEOF>CPU23</ONEOF>
  1518. <ONEOF>CPU40</ONEOF>
  1519. </ARG>
  1520. <TIP>Workaround specified silicon errata</TIP>
  1521. <HELP>The compiler will use workarounds and emit warnings as necessary to properly handle the specified silicon errata.</HELP>
  1522. </OPTION>
  1523. <OPTION tag='SILICON_VERSION'>
  1524. <TYPE>simple</TYPE>
  1525. <NAME>--silicon_version</NAME>
  1526. <PREFERREDALIAS>-v</PREFERREDALIAS>
  1527. <ARG>
  1528. <TYPE>ONEOF</TYPE>
  1529. <STATUS>required</STATUS>
  1530. <DESCRIPTION>msp,mspx</DESCRIPTION>
  1531. <ONEOF>msp</ONEOF>
  1532. <ONEOF>mspx</ONEOF>
  1533. <DEFAULT>msp</DEFAULT>
  1534. </ARG>
  1535. <TIP>Silicon version </TIP>
  1536. <HELP>Specify silicon core version.</HELP>
  1537. </OPTION>
  1538. <OPTION tag='SINGLE_INLINE'>
  1539. <TYPE>simple</TYPE>
  1540. <NAME>--single_inline</NAME>
  1541. <TIP>Inline functions only called once.</TIP>
  1542. <HELP>Inline function that are called only once. Will inline these functions even if auto inlining has been turned off (-oi0)</HELP>
  1543. </OPTION>
  1544. <OPTION tag='SKIP_ASSEMBLER'>
  1545. <TYPE>cmdline</TYPE>
  1546. <NAME>--skip_assembler</NAME>
  1547. <ALIAS>-n</ALIAS>
  1548. <TIP>Compile only; do not assemble</TIP>
  1549. <HELP>Compile only; do not assemble</HELP>
  1550. <CHAIN>
  1551. <TAG>KEEP_ASM</TAG>
  1552. <TEXT>--keep_asm</TEXT>
  1553. </CHAIN>
  1554. </OPTION>
  1555. <OPTION tag='SMALL_ENUM'>
  1556. <TYPE>simple</TYPE>
  1557. <NAME>--small_enum</NAME>
  1558. <ALIAS>--small-enum</ALIAS>
  1559. <TIP>Enums may be char/short, instead of int</TIP>
  1560. <HELP>Enums may be char/short, instead of int</HELP>
  1561. <CHAIN>
  1562. <TAG>ENUM_TYPE</TAG>
  1563. <TEXT>--enum_type=packed</TEXT>
  1564. </CHAIN>
  1565. </OPTION>
  1566. <OPTION tag='SRC_INTERLIST'>
  1567. <TYPE>simple</TYPE>
  1568. <NAME>--src_interlist</NAME>
  1569. <ALIAS>-s</ALIAS>
  1570. <TIP>Generate interlisted assembly file</TIP>
  1571. <HELP>Generate interlisted assembly file</HELP>
  1572. <OVERRIDES>C_SRC_INTERLIST</OVERRIDES>
  1573. </OPTION>
  1574. <OPTION tag='STATIC_TEMPLATE_INSTANTIATION'>
  1575. <TYPE>simple</TYPE>
  1576. <NAME>--static_template_instantiation</NAME>
  1577. <TIP>Do static early template instantiation</TIP>
  1578. <HELP>All template entities are instantiated as needed in the file. The instantiations are given internal (static) linkage.</HELP>
  1579. </OPTION>
  1580. <OPTION tag='STD_LIB_FUNC_DEFINED'>
  1581. <TYPE>singlefile</TYPE>
  1582. <NAME>--std_lib_func_defined</NAME>
  1583. <ALIAS>-ol1</ALIAS>
  1584. <TIP>File contains an RTS library function.</TIP>
  1585. <HELP>File contains an RTS library function.</HELP>
  1586. </OPTION>
  1587. <OPTION tag='STD_LIB_FUNC_NOT_DEFINED'>
  1588. <TYPE>singlefile</TYPE>
  1589. <NAME>--std_lib_func_not_defined</NAME>
  1590. <ALIAS>-ol2</ALIAS>
  1591. <TIP>File does not define any RTS library func (def.)</TIP>
  1592. <HELP>File does not define any RTS library func (def.)</HELP>
  1593. </OPTION>
  1594. <OPTION tag='STD_LIB_FUNC_REDEFINED'>
  1595. <TYPE>singlefile</TYPE>
  1596. <NAME>--std_lib_func_redefined</NAME>
  1597. <ALIAS>-ol0</ALIAS>
  1598. <TIP>File redefines an RTS library function.</TIP>
  1599. <HELP>File redefines an RTS library function.</HELP>
  1600. </OPTION>
  1601. <OPTION tag='STRICT_ANSI'>
  1602. <TYPE>simple</TYPE>
  1603. <NAME>--strict_ansi</NAME>
  1604. <ALIAS>-ps</ALIAS>
  1605. <TIP>Strict ANSI mode (errors)</TIP>
  1606. <HELP>Enable strict ANSI source parsing mode. Any source violating strict ANSI guidelines will generate a parsing error.</HELP>
  1607. <CONFLICT>GCC</CONFLICT>
  1608. <RESETS>RELAXED_ANSI</RESETS>
  1609. </OPTION>
  1610. <OPTION tag='SUPER_QUIET'>
  1611. <TYPE>simple</TYPE>
  1612. <NAME>--super_quiet</NAME>
  1613. <ALIAS>-qq</ALIAS>
  1614. <TIP>Super Quiet Mode</TIP>
  1615. <HELP>Suppress all compiler non-diagnostic output. Remarks, errors and warnings will still be generated.</HELP>
  1616. <RESETS>VERBOSE</RESETS>
  1617. <RESETS>QUIET</RESETS>
  1618. </OPTION>
  1619. <OPTION tag='SYMDEBUG__DWARF'>
  1620. <TYPE>simple</TYPE>
  1621. <NAME>--symdebug:dwarf</NAME>
  1622. <PREFERREDALIAS>-g</PREFERREDALIAS>
  1623. <TIP>Full symbolic debug</TIP>
  1624. <HELP>Enable full symbolic DWARF debugging in the generated object or out file.</HELP>
  1625. <OVERRIDES>SYMDEBUG__NONE</OVERRIDES>
  1626. <OVERRIDES>SYMDEBUG__PROFILE_COFF</OVERRIDES>
  1627. <OVERRIDES>SYMDEBUG__SKELETAL</OVERRIDES>
  1628. <OVERRIDES>SYMDEBUG__COFF</OVERRIDES>
  1629. </OPTION>
  1630. <OPTION tag='SYMDEBUG__DWARF_VERSION'>
  1631. <TYPE>simple</TYPE>
  1632. <NAME>--symdebug:dwarf_version</NAME>
  1633. <ARG>
  1634. <TYPE>ONEOF</TYPE>
  1635. <STATUS>required</STATUS>
  1636. <DESCRIPTION>2,3,4</DESCRIPTION>
  1637. <ONEOF>2</ONEOF>
  1638. <ONEOF>3</ONEOF>
  1639. <ONEOF>4</ONEOF>
  1640. </ARG>
  1641. <TIP>Specify DWARF version</TIP>
  1642. <HELP>Specify DWARF version</HELP>
  1643. <CONFLICT>SYMDEBUG__COFF</CONFLICT>
  1644. <CONFLICT>SYMDEBUG__NONE</CONFLICT>
  1645. <CONFLICT>SYMDEBUG__PROFILE_COFF</CONFLICT>
  1646. </OPTION>
  1647. <OPTION tag='SYMDEBUG__KEEP_ALL_TYPES'>
  1648. <TYPE>simple</TYPE>
  1649. <NAME>--symdebug:keep_all_types</NAME>
  1650. <TIP>Keep unreferenced type info (default for elf w/ debug)</TIP>
  1651. <HELP>Keep referenced type info (default for elf w/ debug)</HELP>
  1652. <CHAIN>
  1653. <TAG>KEEP_UNNEEDED_TYPES</TAG>
  1654. <TEXT>--keep_unneeded_types=true</TEXT>
  1655. </CHAIN>
  1656. </OPTION>
  1657. <OPTION tag='SYMDEBUG__NONE'>
  1658. <TYPE>simple</TYPE>
  1659. <NAME>--symdebug:none</NAME>
  1660. <TIP>Suppress all symbolic debug generation</TIP>
  1661. <HELP>Disable debug and suppress all symbolic debug information from being included in the generated object or out file.</HELP>
  1662. <CONFLICT>PROFILE__POWER</CONFLICT>
  1663. <CONFLICT>OCS_ACTIVE</CONFLICT>
  1664. <CONFLICT>PROFILE__BREAKPT</CONFLICT>
  1665. <OVERRIDES>SYMDEBUG__DWARF</OVERRIDES>
  1666. <OVERRIDES>SYMDEBUG__PROFILE_COFF</OVERRIDES>
  1667. <OVERRIDES>SYMDEBUG__SKELETAL</OVERRIDES>
  1668. <OVERRIDES>SYMDEBUG__COFF</OVERRIDES>
  1669. </OPTION>
  1670. <OPTION tag='SYMDEBUG__SKELETAL'>
  1671. <TYPE>simple</TYPE>
  1672. <NAME>--symdebug:skeletal</NAME>
  1673. <TIP>Symbolic debug for program analysis (DEPRECATED)</TIP>
  1674. <HELP>Enable symbolic debug information for program analysis. (DEPRECATED)</HELP>
  1675. <OVERRIDES>SYMDEBUG__COFF</OVERRIDES>
  1676. <OVERRIDES>SYMDEBUG__PROFILE_COFF</OVERRIDES>
  1677. <OVERRIDES>SYMDEBUG__DWARF</OVERRIDES>
  1678. <OVERRIDES>SYMDEBUG__NONE</OVERRIDES>
  1679. </OPTION>
  1680. <OPTION tag='SYMS_IGNORE_CASE'>
  1681. <TYPE>simple</TYPE>
  1682. <NAME>--syms_ignore_case</NAME>
  1683. <ALIAS>-ac</ALIAS>
  1684. <TIP>Symbol names are not case-significant</TIP>
  1685. <HELP>Symbol names are not case-significant</HELP>
  1686. </OPTION>
  1687. <OPTION tag='TEMP_DIRECTORY'>
  1688. <TYPE>simple</TYPE>
  1689. <NAME>--temp_directory</NAME>
  1690. <ALIAS>-ft</ALIAS>
  1691. <ARG>
  1692. <TYPE>STRING</TYPE>
  1693. <STATUS>required</STATUS>
  1694. <DESCRIPTION>dir</DESCRIPTION>
  1695. </ARG>
  1696. <TIP>Temporary file directory (default is .)</TIP>
  1697. <HELP>Temporary file directory (default is .)</HELP>
  1698. </OPTION>
  1699. <OPTION tag='TOOL_VERSION'>
  1700. <TYPE>simple</TYPE>
  1701. <NAME>--tool_version</NAME>
  1702. <ALIAS>-version</ALIAS>
  1703. <TIP>Print version numbers for each tool</TIP>
  1704. <HELP>Print version numbers for each tool</HELP>
  1705. </OPTION>
  1706. <OPTION tag='UNDEFINE'>
  1707. <TYPE>simple</TYPE>
  1708. <NAME>--undefine</NAME>
  1709. <ALIAS>-U</ALIAS>
  1710. <ARG>
  1711. <TYPE>STRINGLIST</TYPE>
  1712. <STATUS>required</STATUS>
  1713. <DESCRIPTION>NAME</DESCRIPTION>
  1714. </ARG>
  1715. <TIP>Undefine NAME</TIP>
  1716. <HELP>Undefine the symbol with the id &apos;NAME&apos;.</HELP>
  1717. </OPTION>
  1718. <OPTION tag='USE_HW_MPY'>
  1719. <TYPE>simple</TYPE>
  1720. <NAME>--use_hw_mpy</NAME>
  1721. <ARG>
  1722. <TYPE>ONEOF</TYPE>
  1723. <STATUS>optional</STATUS>
  1724. <DESCRIPTION>16,32,F5,none</DESCRIPTION>
  1725. <ONEOF>16</ONEOF>
  1726. <ONEOF>32</ONEOF>
  1727. <ONEOF>F5</ONEOF>
  1728. <ONEOF>none</ONEOF>
  1729. <DEFAULT>16</DEFAULT>
  1730. </ARG>
  1731. <TIP>Inline hardware multiply version of RTS mpy routine</TIP>
  1732. <HELP>Replaces all references to the default integer/long multiply routines with the hardware multiplier version of the multiply routine. Additionally inlines hardware multiply calls for --opt_level&gt;=0 and --opt_for_speed&gt;=4. 16 uses the 1xx/2xx/4xx family 16-bit hardware multiplier, 32 uses the 4xx 32-bit hardware multiplier, and F5 uses the 5xx/6xx family 32-bit hardware multiplier.</HELP>
  1733. </OPTION>
  1734. <OPTION tag='USE_PROFILE_INFO'>
  1735. <TYPE>simple</TYPE>
  1736. <NAME>--use_profile_info</NAME>
  1737. <ARG>
  1738. <TYPE>STRINGLIST</TYPE>
  1739. <STATUS>optional</STATUS>
  1740. <DESCRIPTION>filelist</DESCRIPTION>
  1741. </ARG>
  1742. <TIP>Use profile feedback file(s)</TIP>
  1743. <HELP>This option is used in combination with the --analyze option to generate analysis information about code coverage or call graph information in the form of CSV files. This information can then be read and interpreted by other tools. For example, the cache layout tool, clt6x, can be used to interpret the call graph information and produce a preferred function order that can be incorporated into the application link. The compiler can only generate one kind of analysis information for a given invocation of the compiler.</HELP>
  1744. </OPTION>
  1745. <OPTION tag='VERBOSE'>
  1746. <TYPE>simple</TYPE>
  1747. <NAME>--verbose</NAME>
  1748. <TIP>Display banner and function progress information</TIP>
  1749. <HELP>Display progress information and toolset version when executing.</HELP>
  1750. <RESETS>QUIET</RESETS>
  1751. <RESETS>SUPER_QUIET</RESETS>
  1752. </OPTION>
  1753. <OPTION tag='VERBOSE_DIAGNOSTICS'>
  1754. <TYPE>simple</TYPE>
  1755. <NAME>--verbose_diagnostics</NAME>
  1756. <ALIAS>-pdv</ALIAS>
  1757. <TIP>Verbose diagnostics</TIP>
  1758. <HELP>Enable verbose diagnostic information from the parser, including the source line of the error and an indicator of the error position within the line.</HELP>
  1759. </OPTION>
  1760. <OPTION tag='WRITE_DIAGNOSTICS_FILE'>
  1761. <TYPE>simple</TYPE>
  1762. <NAME>--write_diagnostics_file</NAME>
  1763. <ALIAS>-pdf</ALIAS>
  1764. <TIP>Output diagnostic to .err file</TIP>
  1765. <HELP>Write diagnostics to an .err file instead of the standard output. The file name with be the same as the source file but with an .err extension.</HELP>
  1766. </OPTION>
  1767. <OPTION tag='W'>
  1768. <TYPE>simple</TYPE>
  1769. <NAME>-W</NAME>
  1770. <ARG>
  1771. <TYPE>STRINGLIST</TYPE>
  1772. <STATUS>required</STATUS>
  1773. <DESCRIPTION>-W[warning_argument]</DESCRIPTION>
  1774. </ARG>
  1775. <TIP>Give Clang warning argument</TIP>
  1776. <HELP>Forwards a warning argument to Clang</HELP>
  1777. </OPTION>
  1778. <MUTEX tag='MUTEX_QUIET_LEVEL'>
  1779. <NAME>Quiet Level</NAME>
  1780. <SEVERITY>RESET</SEVERITY>
  1781. <STATUS>optional</STATUS>
  1782. <MEMBER>VERBOSE</MEMBER>
  1783. <MEMBER>QUIET</MEMBER>
  1784. <MEMBER>SUPER_QUIET</MEMBER>
  1785. </MUTEX>
  1786. <MUTEX tag='MUTEX_DEBUGGING_MODEL'>
  1787. <NAME>Debugging model</NAME>
  1788. <SEVERITY>OVERRIDE</SEVERITY>
  1789. <STATUS>optional</STATUS>
  1790. <MEMBER>SYMDEBUG__DWARF</MEMBER>
  1791. <MEMBER>SYMDEBUG__NONE</MEMBER>
  1792. <MEMBER>SYMDEBUG__SKELETAL</MEMBER>
  1793. </MUTEX>
  1794. <MUTEX tag='MUTEX_SOURCE_INTERLIST'>
  1795. <NAME>Source interlist</NAME>
  1796. <SEVERITY>OVERRIDE</SEVERITY>
  1797. <STATUS>optional</STATUS>
  1798. <MEMBER>SRC_INTERLIST</MEMBER>
  1799. <MEMBER>C_SRC_INTERLIST</MEMBER>
  1800. </MUTEX>
  1801. <MUTEX tag='MUTEX_C_DIALECT'>
  1802. <NAME>C Dialect</NAME>
  1803. <SEVERITY>RESET</SEVERITY>
  1804. <STATUS>optional</STATUS>
  1805. <MEMBER>C89</MEMBER>
  1806. <MEMBER>C99</MEMBER>
  1807. <MEMBER>KR_COMPATIBLE</MEMBER>
  1808. </MUTEX>
  1809. <MUTEX tag='MUTEX_C___DIALECT'>
  1810. <NAME>C++ Dialect</NAME>
  1811. <SEVERITY>RESET</SEVERITY>
  1812. <STATUS>optional</STATUS>
  1813. <MEMBER>CPLUSPLUS03</MEMBER>
  1814. <MEMBER>EMBEDDED_CPP</MEMBER>
  1815. </MUTEX>
  1816. <MUTEX tag='MUTEX_LANGUAGE_MODE'>
  1817. <NAME>Language mode</NAME>
  1818. <SEVERITY>RESET</SEVERITY>
  1819. <STATUS>optional</STATUS>
  1820. <MEMBER>RELAXED_ANSI</MEMBER>
  1821. <MEMBER>STRICT_ANSI</MEMBER>
  1822. </MUTEX>
  1823. <MUTEX tag='MUTEX_PREPROCESSOR_ANALYSIS_OPTIONS'>
  1824. <NAME>Preprocessor Analysis Options</NAME>
  1825. <SEVERITY>OVERRIDE</SEVERITY>
  1826. <STATUS>optional</STATUS>
  1827. <MEMBER>PREPROC_DEPENDENCY</MEMBER>
  1828. <MEMBER>PREPROC_INCLUDES</MEMBER>
  1829. <MEMBER>PREPROC_MACROS</MEMBER>
  1830. </MUTEX>
  1831. <MUTEX tag='MUTEX_FUNCTION_SUBSECTIONS'>
  1832. <NAME>Function Subsections</NAME>
  1833. <SEVERITY>OVERRIDE</SEVERITY>
  1834. <STATUS>optional</STATUS>
  1835. <MEMBER>GEN_DATA_SUBSECTIONS</MEMBER>
  1836. <MEMBER>RAMFUNC</MEMBER>
  1837. </MUTEX>
  1838. </DEFINITIONS>
  1839. <BASIC>
  1840. </BASIC>
  1841. <CATEGORY tag='PROCESSOR'>
  1842. <NAME>Processor Options:</NAME>
  1843. <MEMBER>SILICON_VERSION</MEMBER>
  1844. <MEMBER>DATA_MODEL</MEMBER>
  1845. <MEMBER>CODE_MODEL</MEMBER>
  1846. <MEMBER>NEAR_DATA</MEMBER>
  1847. </CATEGORY>
  1848. <CATEGORY tag='BASICOPT'>
  1849. <NAME>Optimization:</NAME>
  1850. <MEMBER>OPT_LEVEL</MEMBER>
  1851. <MEMBER>OPT_FOR_SPEED</MEMBER>
  1852. <MEMBER>USE_HW_MPY</MEMBER>
  1853. </CATEGORY>
  1854. <CATEGORY tag='INCLUDES'>
  1855. <NAME>Include Options:</NAME>
  1856. <MEMBER>PREINCLUDE</MEMBER>
  1857. <MEMBER>INCLUDE_PATH</MEMBER>
  1858. </CATEGORY>
  1859. <CATEGORY tag='ULP'>
  1860. <NAME>ULP Advisor:</NAME>
  1861. <MEMBER>ADVICE__POWER_SEVERITY</MEMBER>
  1862. <MEMBER>ADVICE__POWER</MEMBER>
  1863. </CATEGORY>
  1864. <CATEGORY tag='ADVICE'>
  1865. <NAME>Advice Options:</NAME>
  1866. <MEMBER>ADVICE__HW_CONFIG_SEVERITY</MEMBER>
  1867. <MEMBER>ADVICE__HW_CONFIG</MEMBER>
  1868. </CATEGORY>
  1869. <CATEGORY tag='ADVANCED'>
  1870. <NAME>Advanced Options:</NAME>
  1871. <MEMBERCAT>CONTROL</MEMBERCAT>
  1872. <MEMBERCAT>SYMDEBUG</MEMBERCAT>
  1873. <MEMBERCAT>PARSER</MEMBERCAT>
  1874. <MEMBERCAT>PREPROC</MEMBERCAT>
  1875. <MEMBERCAT>DEFINES</MEMBERCAT>
  1876. <MEMBERCAT>PDIAG</MEMBERCAT>
  1877. <MEMBERCAT>MODEL</MEMBERCAT>
  1878. <MEMBERCAT>OPTIM</MEMBERCAT>
  1879. <MEMBERCAT>OCS</MEMBERCAT>
  1880. <MEMBERCAT>HOOK</MEMBERCAT>
  1881. <MEMBERCAT>FEEDBACK</MEMBERCAT>
  1882. <MEMBERCAT>LIB</MEMBERCAT>
  1883. <MEMBERCAT>GRAPH</MEMBERCAT>
  1884. <MEMBERCAT>ASM</MEMBERCAT>
  1885. <MEMBERCAT>FILE</MEMBERCAT>
  1886. <MEMBERCAT>DIRECTORY</MEMBERCAT>
  1887. <MEMBERCAT>FILEEXT</MEMBERCAT>
  1888. <MEMBERCAT>INTERNAL</MEMBERCAT>
  1889. <MEMBERCAT>DYNAMIC</MEMBERCAT>
  1890. <MEMBERCAT>CMDFILES</MEMBERCAT>
  1891. <MEMBERCAT>MISRA</MEMBERCAT>
  1892. </CATEGORY>
  1893. <CATEGORY tag='CONTROL'>
  1894. <NAME>Control Options:</NAME>
  1895. <MEMBER>COMPILE_ONLY</MEMBER>
  1896. <MEMBER>SKIP_ASSEMBLER</MEMBER>
  1897. <MEMBER>HELP</MEMBER>
  1898. <MEMBER>RUN_LINKER</MEMBER>
  1899. </CATEGORY>
  1900. <CATEGORY tag='SYMDEBUG'>
  1901. <NAME>Advanced Debug Options:</NAME>
  1902. <MEMBER>MUTEX_DEBUGGING_MODEL</MEMBER>
  1903. <MEMBER>OPTIMIZE_WITH_DEBUG</MEMBER>
  1904. <MEMBER>SYMDEBUG__KEEP_ALL_TYPES</MEMBER>
  1905. <MEMBER>SYMDEBUG__DWARF_VERSION</MEMBER>
  1906. </CATEGORY>
  1907. <CATEGORY tag='PARSER'>
  1908. <NAME>Language Options:</NAME>
  1909. <MEMBER>MUTEX_C_DIALECT</MEMBER>
  1910. <MEMBER>MUTEX_C___DIALECT</MEMBER>
  1911. <MEMBER>MUTEX_LANGUAGE_MODE</MEMBER>
  1912. <MEMBER>RTTI</MEMBER>
  1913. <MEMBER>PENDING_INSTANTIATIONS</MEMBER>
  1914. <MEMBER>CPP_DEFAULT</MEMBER>
  1915. <MEMBER>FLOAT_OPERATIONS_ALLOWED</MEMBER>
  1916. <MEMBER>NO_INLINING</MEMBER>
  1917. <MEMBER>KEEP_UNNEEDED_STATICS</MEMBER>
  1918. <MEMBER>EXCEPTIONS</MEMBER>
  1919. <MEMBER>GEN_ACP_RAW</MEMBER>
  1920. <MEMBER>STATIC_TEMPLATE_INSTANTIATION</MEMBER>
  1921. <MEMBER>MULTIBYTE_CHARS</MEMBER>
  1922. <MEMBER>GEN_ACP_XREF</MEMBER>
  1923. <MEMBER>NO_INTRINSICS</MEMBER>
  1924. <MEMBER>PROGRAM_LEVEL_COMPILE</MEMBER>
  1925. <MEMBER>GCC</MEMBER>
  1926. <MEMBER>EXTERN_C_CAN_THROW</MEMBER>
  1927. </CATEGORY>
  1928. <CATEGORY tag='PREPROC'>
  1929. <NAME>Parser Preprocessing Options:</NAME>
  1930. <MEMBER>MUTEX_PREPROCESSOR_ANALYSIS_OPTIONS</MEMBER>
  1931. <MEMBER>PREPROC_WITH_LINE</MEMBER>
  1932. <MEMBER>PREPROC_WITH_COMPILE</MEMBER>
  1933. <MEMBER>PREPROC_WITH_COMMENT</MEMBER>
  1934. <MEMBER>PREPROC_ONLY</MEMBER>
  1935. </CATEGORY>
  1936. <CATEGORY tag='DEFINES'>
  1937. <NAME>Predefined Symbols:</NAME>
  1938. <MEMBER>LLOPT</MEMBER>
  1939. <MEMBER>UNDEFINE</MEMBER>
  1940. <MEMBER>DEFINE</MEMBER>
  1941. <MEMBER>W</MEMBER>
  1942. </CATEGORY>
  1943. <CATEGORY tag='PDIAG'>
  1944. <NAME>Diagnostic Options:</NAME>
  1945. <MEMBER>MUTEX_QUIET_LEVEL</MEMBER>
  1946. <MEMBER>COMPILER_REVISION</MEMBER>
  1947. <MEMBER>DIAG_WARNING</MEMBER>
  1948. <MEMBER>DIAG_SUPPRESS</MEMBER>
  1949. <MEMBER>NO_WARNINGS</MEMBER>
  1950. <MEMBER>SECTION_SIZES</MEMBER>
  1951. <MEMBER>ISSUE_REMARKS</MEMBER>
  1952. <MEMBER>EMIT_WARNINGS_AS_ERRORS</MEMBER>
  1953. <MEMBER>DIAG_WRAP</MEMBER>
  1954. <MEMBER>VERBOSE_DIAGNOSTICS</MEMBER>
  1955. <MEMBER>BUFFER_DIAGNOSTICS</MEMBER>
  1956. <MEMBER>TOOL_VERSION</MEMBER>
  1957. <MEMBER>WRITE_DIAGNOSTICS_FILE</MEMBER>
  1958. <MEMBER>DISPLAY_ERROR_NUMBER</MEMBER>
  1959. <MEMBER>DIAG_ERROR</MEMBER>
  1960. <MEMBER>SET_ERROR_LIMIT</MEMBER>
  1961. <MEMBER>DIAG_REMARK</MEMBER>
  1962. </CATEGORY>
  1963. <CATEGORY tag='MODEL'>
  1964. <NAME>Runtime Model Options:</NAME>
  1965. <MEMBER>MUTEX_FUNCTION_SUBSECTIONS</MEMBER>
  1966. <MEMBER>LARGE_MEMORY_MODEL</MEMBER>
  1967. <MEMBER>SILICON_ERRATA</MEMBER>
  1968. <MEMBER>PLAIN_CHAR</MEMBER>
  1969. <MEMBER>SAT_REASSOC</MEMBER>
  1970. <MEMBER>FP_REASSOC</MEMBER>
  1971. <MEMBER>ABI</MEMBER>
  1972. <MEMBER>COMMON</MEMBER>
  1973. <MEMBER>GLOBAL_REGISTER</MEMBER>
  1974. <MEMBER>SMALL_ENUM</MEMBER>
  1975. </CATEGORY>
  1976. <CATEGORY tag='OPTIM'>
  1977. <NAME>Advanced Optimizations:</NAME>
  1978. <MEMBER>DISABLE_INTERRUPTS_AROUND_HW_MPY</MEMBER>
  1979. <MEMBER>SINGLE_INLINE</MEMBER>
  1980. <MEMBER>AUTO_INLINE</MEMBER>
  1981. <MEMBER>GEN_OPT_INFO</MEMBER>
  1982. <MEMBER>REMOVE_HOOKS_WHEN_INLINING</MEMBER>
  1983. <MEMBER>CALL_ASSUMPTIONS</MEMBER>
  1984. <MEMBER>ALIASED_VARIABLES</MEMBER>
  1985. </CATEGORY>
  1986. <CATEGORY tag='HOOK'>
  1987. <NAME>Entry/Exit Hook Options:</NAME>
  1988. <MEMBER>EXIT_HOOK</MEMBER>
  1989. <MEMBER>EXIT_PARM</MEMBER>
  1990. <MEMBER>ENTRY_PARM</MEMBER>
  1991. <MEMBER>ENTRY_HOOK</MEMBER>
  1992. </CATEGORY>
  1993. <CATEGORY tag='FEEDBACK'>
  1994. <NAME>Feedback and Analysis Options:</NAME>
  1995. <MEMBER>USE_PROFILE_INFO</MEMBER>
  1996. <MEMBER>GEN_PROFILE_INFO</MEMBER>
  1997. <MEMBER>ANALYZE</MEMBER>
  1998. <MEMBER>ANALYZE_ONLY</MEMBER>
  1999. </CATEGORY>
  2000. <CATEGORY tag='LIB'>
  2001. <NAME>Library Function Assumptions:</NAME>
  2002. <MEMBER>PRINTF_SUPPORT</MEMBER>
  2003. <MEMBER>STD_LIB_FUNC_NOT_DEFINED</MEMBER>
  2004. <MEMBER>STD_LIB_FUNC_REDEFINED</MEMBER>
  2005. <MEMBER>STD_LIB_FUNC_DEFINED</MEMBER>
  2006. </CATEGORY>
  2007. <CATEGORY tag='ASM'>
  2008. <NAME>Assembler Options:</NAME>
  2009. <MEMBER>KEEP_ASM</MEMBER>
  2010. <MEMBER>MUTEX_SOURCE_INTERLIST</MEMBER>
  2011. <MEMBER>ASM_LISTING</MEMBER>
  2012. <MEMBER>ASM_INCLUDES</MEMBER>
  2013. <MEMBER>SYMS_IGNORE_CASE</MEMBER>
  2014. <MEMBER>CROSS_REFERENCE</MEMBER>
  2015. <MEMBER>INCLUDE_FILE</MEMBER>
  2016. <MEMBER>OUTPUT_ALL_SYMS</MEMBER>
  2017. <MEMBER>ABSOLUTE_LISTING</MEMBER>
  2018. <MEMBER>ASM_DEFINE</MEMBER>
  2019. <MEMBER>ASM_DEPENDENCY</MEMBER>
  2020. <MEMBER>COPY_FILE</MEMBER>
  2021. <MEMBER>ASM_UNDEFINE</MEMBER>
  2022. <MEMBER>NO_CONST_CLINK</MEMBER>
  2023. </CATEGORY>
  2024. <CATEGORY tag='FILE'>
  2025. <NAME>File Type Specifier:</NAME>
  2026. <MEMBER>ASM_FILE</MEMBER>
  2027. <MEMBER>CPP_FILE</MEMBER>
  2028. <MEMBER>OBJ_FILE</MEMBER>
  2029. <MEMBER>C_FILE</MEMBER>
  2030. </CATEGORY>
  2031. <CATEGORY tag='DIRECTORY'>
  2032. <NAME>Directory Specifier:</NAME>
  2033. <MEMBER>TEMP_DIRECTORY</MEMBER>
  2034. <MEMBER>ABS_DIRECTORY</MEMBER>
  2035. <MEMBER>PP_DIRECTORY</MEMBER>
  2036. <MEMBER>ASM_DIRECTORY</MEMBER>
  2037. <MEMBER>LIST_DIRECTORY</MEMBER>
  2038. <MEMBER>OUTPUT_FILE</MEMBER>
  2039. <MEMBER>OBJ_DIRECTORY</MEMBER>
  2040. </CATEGORY>
  2041. <CATEGORY tag='FILEEXT'>
  2042. <NAME>Default File Extensions:</NAME>
  2043. <MEMBER>CPP_EXTENSION</MEMBER>
  2044. <MEMBER>ASM_EXTENSION</MEMBER>
  2045. <MEMBER>OBJ_EXTENSION</MEMBER>
  2046. <MEMBER>LISTING_EXTENSION</MEMBER>
  2047. <MEMBER>C_EXTENSION</MEMBER>
  2048. </CATEGORY>
  2049. <CATEGORY tag='CMDFILES'>
  2050. <NAME>Command Files:</NAME>
  2051. <MEMBER>CMD_FILE</MEMBER>
  2052. </CATEGORY>
  2053. <CATEGORY tag='MISRA'>
  2054. <NAME>MISRA-C:2004:</NAME>
  2055. <MEMBER>CHECK_MISRA</MEMBER>
  2056. <MEMBER>MISRA_ADVISORY</MEMBER>
  2057. <MEMBER>MISRA_REQUIRED</MEMBER>
  2058. </CATEGORY>
  2059. </TOOL>
  2060. <TOOL>
  2061. <TAG>LINKER</TAG>
  2062. <TOOLNAME>C/C++ LINKER</TOOLNAME>
  2063. <DEFINITIONS>
  2064. <OPTION tag='ABSOLUTE_EXE'>
  2065. <TYPE>simple</TYPE>
  2066. <NAME>--absolute_exe</NAME>
  2067. <ALIAS>-a</ALIAS>
  2068. <TIP>Produce absolute executable object file (default)</TIP>
  2069. <HELP>Produce absolute executable object file (default)</HELP>
  2070. </OPTION>
  2071. <OPTION tag='ARG_SIZE'>
  2072. <TYPE>simple</TYPE>
  2073. <NAME>--arg_size</NAME>
  2074. <ALIAS>--args</ALIAS>
  2075. <ARG>
  2076. <TYPE>HEXNUMBER</TYPE>
  2077. <STATUS>required</STATUS>
  2078. <DESCRIPTION>size</DESCRIPTION>
  2079. </ARG>
  2080. <TIP>Set C argc/argv memory size</TIP>
  2081. <HELP>Set C argc/argv memory size</HELP>
  2082. </OPTION>
  2083. <OPTION tag='BUFFER_DIAGNOSTICS'>
  2084. <TYPE>simple</TYPE>
  2085. <NAME>--buffer_diagnostics</NAME>
  2086. <ALIAS>-pdb</ALIAS>
  2087. <TIP>Line buffer diagnostic output</TIP>
  2088. <HELP>Line buffer diagnostic output to reduce message mixing when compiling in parallel.</HELP>
  2089. </OPTION>
  2090. <OPTION tag='CINIT_COMPRESSION'>
  2091. <TYPE>simple</TYPE>
  2092. <NAME>--cinit_compression</NAME>
  2093. <ARG>
  2094. <TYPE>STRING</TYPE>
  2095. <STATUS>optional</STATUS>
  2096. <DESCRIPTION>compression_kind</DESCRIPTION>
  2097. <DEFAULT>rle</DEFAULT>
  2098. </ARG>
  2099. <TIP>Compress ELF C style auto initialization data</TIP>
  2100. <HELP>Specify the compression to apply to the c auto initialization data</HELP>
  2101. </OPTION>
  2102. <OPTION tag='CINIT_HOLD_WDT'>
  2103. <TYPE>simple</TYPE>
  2104. <NAME>--cinit_hold_wdt</NAME>
  2105. <ARG>
  2106. <TYPE>ONEOF</TYPE>
  2107. <STATUS>optional</STATUS>
  2108. <DESCRIPTION>on,off</DESCRIPTION>
  2109. <ONEOF>on</ONEOF>
  2110. <ONEOF>off</ONEOF>
  2111. <DEFAULT>on</DEFAULT>
  2112. </ARG>
  2113. <TIP>Hold watchdog timer during cinit auto-initialization</TIP>
  2114. <HELP>Hold watchdog timer during cinit portion of auto-initialization. Select off to leave watchdog enabled during cinit auto-initialization.</HELP>
  2115. </OPTION>
  2116. <OPTION tag='COMPRESS_DWARF'>
  2117. <TYPE>simple</TYPE>
  2118. <NAME>--compress_dwarf</NAME>
  2119. <ARG>
  2120. <TYPE>ONEOF</TYPE>
  2121. <STATUS>optional</STATUS>
  2122. <DESCRIPTION>on,off</DESCRIPTION>
  2123. <ONEOF>on</ONEOF>
  2124. <ONEOF>off</ONEOF>
  2125. <DEFAULT>on</DEFAULT>
  2126. </ARG>
  2127. <TIP>Aggressively reduce size of the DWARF information</TIP>
  2128. <HELP>Aggressively reduce the size of the DWARF information. When this option used, the DWARF information is parsed and examined to look for and eliminate duplicate types, and builds a .debug_abbrev table for the whole program.</HELP>
  2129. </OPTION>
  2130. <OPTION tag='COPY_COMPRESSION'>
  2131. <TYPE>simple</TYPE>
  2132. <NAME>--copy_compression</NAME>
  2133. <ARG>
  2134. <TYPE>STRING</TYPE>
  2135. <STATUS>optional</STATUS>
  2136. <DESCRIPTION>compression_kind</DESCRIPTION>
  2137. <DEFAULT>rle</DEFAULT>
  2138. </ARG>
  2139. <TIP>Compress ELF sections copied using copy tables</TIP>
  2140. <HELP>Overlays can be managed by using linker generated copy tables. To save ROM space, the linker can compress the data copied by copy tables. The compressed data is decompressed during copy.</HELP>
  2141. </OPTION>
  2142. <OPTION tag='DEFINE'>
  2143. <TYPE>simple</TYPE>
  2144. <NAME>--define</NAME>
  2145. <ARG>
  2146. <TYPE>STRINGLIST</TYPE>
  2147. <STATUS>required</STATUS>
  2148. <DESCRIPTION>name=value</DESCRIPTION>
  2149. </ARG>
  2150. <TIP>Pre-define preprocessor macro _name_ to _value_</TIP>
  2151. <HELP>Pre-define preprocessor macro _name_ to _value_</HELP>
  2152. </OPTION>
  2153. <OPTION tag='DIAG_ERROR'>
  2154. <TYPE>simple</TYPE>
  2155. <NAME>--diag_error</NAME>
  2156. <ARG>
  2157. <TYPE>STRINGLIST</TYPE>
  2158. <STATUS>required</STATUS>
  2159. <DESCRIPTION>id</DESCRIPTION>
  2160. </ARG>
  2161. <TIP>Treat diagnostic &lt;id&gt; as error</TIP>
  2162. <HELP>Treat diagnostic &lt;id&gt; as error</HELP>
  2163. </OPTION>
  2164. <OPTION tag='DIAG_REMARK'>
  2165. <TYPE>simple</TYPE>
  2166. <NAME>--diag_remark</NAME>
  2167. <ARG>
  2168. <TYPE>STRINGLIST</TYPE>
  2169. <STATUS>required</STATUS>
  2170. <DESCRIPTION>id</DESCRIPTION>
  2171. </ARG>
  2172. <TIP>Treat diagnostic &lt;id&gt; as remark</TIP>
  2173. <HELP>Treat diagnostic &lt;id&gt; as remark</HELP>
  2174. </OPTION>
  2175. <OPTION tag='DIAG_SUPPRESS'>
  2176. <TYPE>simple</TYPE>
  2177. <NAME>--diag_suppress</NAME>
  2178. <ARG>
  2179. <TYPE>STRINGLIST</TYPE>
  2180. <STATUS>required</STATUS>
  2181. <DESCRIPTION>id</DESCRIPTION>
  2182. </ARG>
  2183. <TIP>Suppress diagnostic &lt;id&gt;</TIP>
  2184. <HELP>Suppress diagnostic &lt;id&gt;</HELP>
  2185. </OPTION>
  2186. <OPTION tag='DIAG_WARNING'>
  2187. <TYPE>simple</TYPE>
  2188. <NAME>--diag_warning</NAME>
  2189. <ARG>
  2190. <TYPE>STRINGLIST</TYPE>
  2191. <STATUS>required</STATUS>
  2192. <DESCRIPTION>id</DESCRIPTION>
  2193. </ARG>
  2194. <TIP>Treat diagnostic &lt;id&gt; as warning</TIP>
  2195. <HELP>Treat diagnostic &lt;id&gt; as warning</HELP>
  2196. </OPTION>
  2197. <OPTION tag='DIAG_WRAP'>
  2198. <TYPE>simple</TYPE>
  2199. <NAME>--diag_wrap</NAME>
  2200. <ARG>
  2201. <TYPE>ONEOF</TYPE>
  2202. <STATUS>optional</STATUS>
  2203. <DESCRIPTION>on,off</DESCRIPTION>
  2204. <ONEOF>on</ONEOF>
  2205. <ONEOF>off</ONEOF>
  2206. <DEFAULT>on</DEFAULT>
  2207. </ARG>
  2208. <TIP>Wrap diagnostic messages</TIP>
  2209. <HELP>Set diagnostic messages to wrap at 79 columns (on) or not (off).</HELP>
  2210. </OPTION>
  2211. <OPTION tag='DISABLE_AUTO_RTS'>
  2212. <TYPE>simple</TYPE>
  2213. <NAME>--disable_auto_rts</NAME>
  2214. <TIP>Disable automatic RTS selection</TIP>
  2215. <HELP>Do not attempt to automatically select and link a runtime library.</HELP>
  2216. </OPTION>
  2217. <OPTION tag='DISABLE_CLINK'>
  2218. <TYPE>simple</TYPE>
  2219. <NAME>--disable_clink</NAME>
  2220. <ALIAS>-j</ALIAS>
  2221. <TIP>Disable conditional linking and ignore .clink</TIP>
  2222. <HELP>Disable conditional linking; ignore all .clink directives.</HELP>
  2223. </OPTION>
  2224. <OPTION tag='DISABLE_PP'>
  2225. <TYPE>simple</TYPE>
  2226. <NAME>--disable_pp</NAME>
  2227. <TIP>Don&apos;t use C preprocessor for command files</TIP>
  2228. <HELP>This disables preprocessing of linker command files.</HELP>
  2229. </OPTION>
  2230. <OPTION tag='DISPLAY_ERROR_NUMBER'>
  2231. <TYPE>simple</TYPE>
  2232. <NAME>--display_error_number</NAME>
  2233. <TIP>Emit diagnostic identifier numbers</TIP>
  2234. <HELP>Emit diagnostic identifier numbers</HELP>
  2235. </OPTION>
  2236. <OPTION tag='ECC__DATA_ERROR'>
  2237. <TYPE>simple</TYPE>
  2238. <NAME>--ecc:data_error</NAME>
  2239. <ARG>
  2240. <TYPE>STRINGLIST</TYPE>
  2241. <STATUS>required</STATUS>
  2242. <DESCRIPTION>(address|symbol+offset),[page,]bitmask</DESCRIPTION>
  2243. </ARG>
  2244. <TIP>Introduce bit errors</TIP>
  2245. <HELP>--ecc:data_error=(address|symbol+offset),[page,]bitmask - Introduce bit errors in the outfile. The bits to be flipped in the outfile are located in the unit at the specified offset. The offset is relative to either the origin of the page, or relative to the position of the base symbol, if specified. The default page is zero, and any page may be specified. The bits to be flipped at the specified location are indicated by set bits in the bitmask. In effect, the data in the outfile will be the bitwise-exclusive-or of the bitmask with original code or data. Bit errors can only be applied to initialized data, such as the contents of Flash memory. The effective address of the error must lie inside either the output memory range or the input memory range of an ECC specification.</HELP>
  2246. </OPTION>
  2247. <OPTION tag='ECC__ECC_ERROR'>
  2248. <TYPE>simple</TYPE>
  2249. <NAME>--ecc:ecc_error</NAME>
  2250. <ARG>
  2251. <TYPE>STRINGLIST</TYPE>
  2252. <STATUS>required</STATUS>
  2253. <DESCRIPTION>(address|symbol+offset),[page,]bitmask</DESCRIPTION>
  2254. </ARG>
  2255. <TIP>Introduce bit errors in ECC memory</TIP>
  2256. <HELP>--ecc:ecc_error=(address|symbol+offset),[page,]bitmask - Introduce bit errors in corresponding ECC memory. This option behaves like the --ecc:data_error option, except that the bits are not flipped in the code/data memory at the specified location. Instead, the bits are flipped in the ECC memory area that corresponds to the specified location. The bitmask is 8 bits wide. In the presence of mirroring, bits will be flipped in all mirrored copies of the corresponding ECC byte. The effective address of the error must lie inside the input memory range of an ECC specification.</HELP>
  2257. </OPTION>
  2258. <OPTION tag='EMIT_WARNINGS_AS_ERRORS'>
  2259. <TYPE>simple</TYPE>
  2260. <NAME>--emit_warnings_as_errors</NAME>
  2261. <ALIAS>-pdew</ALIAS>
  2262. <TIP>Treat warnings as errors</TIP>
  2263. <HELP>Treat warnings as errors</HELP>
  2264. <CONFLICT>NO_WARNINGS</CONFLICT>
  2265. </OPTION>
  2266. <OPTION tag='ENTRY_POINT'>
  2267. <TYPE>simple</TYPE>
  2268. <NAME>--entry_point</NAME>
  2269. <ALIAS>-e</ALIAS>
  2270. <ARG>
  2271. <TYPE>STRING</TYPE>
  2272. <STATUS>required</STATUS>
  2273. <DESCRIPTION>symbol</DESCRIPTION>
  2274. </ARG>
  2275. <TIP>Specify program entry point for the output module</TIP>
  2276. <HELP>Specify program entry point for the output module</HELP>
  2277. <CONFLICT>NO_ENTRY_POINT</CONFLICT>
  2278. </OPTION>
  2279. <OPTION tag='FILL_VALUE'>
  2280. <TYPE>simple</TYPE>
  2281. <NAME>--fill_value</NAME>
  2282. <ALIAS>-f</ALIAS>
  2283. <ARG>
  2284. <TYPE>HEXNUMBER</TYPE>
  2285. <STATUS>required</STATUS>
  2286. <DESCRIPTION>value</DESCRIPTION>
  2287. </ARG>
  2288. <TIP>Default fill value for holes in output sections</TIP>
  2289. <HELP>Set the default fill value for filling holes in output sections.</HELP>
  2290. </OPTION>
  2291. <OPTION tag='GLOBALIZE'>
  2292. <TYPE>simple</TYPE>
  2293. <NAME>--globalize</NAME>
  2294. <ARG>
  2295. <TYPE>STRINGLIST</TYPE>
  2296. <STATUS>required</STATUS>
  2297. <DESCRIPTION>pattern</DESCRIPTION>
  2298. </ARG>
  2299. <TIP>Do not localize symbols matching pattern</TIP>
  2300. <HELP>The option &apos;--localize=l_pattern&apos; makes the symbols matching the l_pattern hidden. The &apos;--globalilze=g_pattern&apos; option excludes symbols matching g_pattern from symbol localization provided g_pattern is more restrictive than l_pattern. </HELP>
  2301. </OPTION>
  2302. <OPTION tag='HEAP_SIZE'>
  2303. <TYPE>simple</TYPE>
  2304. <NAME>--heap_size</NAME>
  2305. <ALIAS>-heap</ALIAS>
  2306. <ALIAS>--heap</ALIAS>
  2307. <ARG>
  2308. <TYPE>HEXNUMBER</TYPE>
  2309. <STATUS>required</STATUS>
  2310. <DESCRIPTION>size</DESCRIPTION>
  2311. </ARG>
  2312. <TIP>Heap size for C/C++ dynamic memory allocation</TIP>
  2313. <HELP>Specify the maximum heap size for C/C++ dynamic memory allocation.</HELP>
  2314. </OPTION>
  2315. <OPTION tag='HIDE'>
  2316. <TYPE>simple</TYPE>
  2317. <NAME>--hide</NAME>
  2318. <ARG>
  2319. <TYPE>STRINGLIST</TYPE>
  2320. <STATUS>required</STATUS>
  2321. <DESCRIPTION>pattern</DESCRIPTION>
  2322. </ARG>
  2323. <TIP>Hide symbols matching pattern</TIP>
  2324. <HELP>Hide the symbols matching the pattern by changing the name to empty string</HELP>
  2325. </OPTION>
  2326. <OPTION tag='ISSUE_REMARKS'>
  2327. <TYPE>simple</TYPE>
  2328. <NAME>--issue_remarks</NAME>
  2329. <TIP>Issue remarks</TIP>
  2330. <HELP>Issue remarks</HELP>
  2331. </OPTION>
  2332. <OPTION tag='LIBRARY'>
  2333. <TYPE>simple</TYPE>
  2334. <NAME>--library</NAME>
  2335. <PREFERREDALIAS>-l</PREFERREDALIAS>
  2336. <ARG>
  2337. <TYPE>STRINGLIST</TYPE>
  2338. <STATUS>required</STATUS>
  2339. <DESCRIPTION>file</DESCRIPTION>
  2340. </ARG>
  2341. <TIP>Include library file or command file as input</TIP>
  2342. <HELP>Include library file or command file as input</HELP>
  2343. </OPTION>
  2344. <OPTION tag='LINKER_HELP'>
  2345. <TYPE>cmdline</TYPE>
  2346. <NAME>--linker_help</NAME>
  2347. <ALIAS>-help</ALIAS>
  2348. <ALIAS>--help</ALIAS>
  2349. <TIP>Display usage information</TIP>
  2350. <HELP>Display usage information. Followed by another option, will display detailed information on that option.</HELP>
  2351. </OPTION>
  2352. <OPTION tag='LOCALIZE'>
  2353. <TYPE>simple</TYPE>
  2354. <NAME>--localize</NAME>
  2355. <ARG>
  2356. <TYPE>STRINGLIST</TYPE>
  2357. <STATUS>required</STATUS>
  2358. <DESCRIPTION>pattern</DESCRIPTION>
  2359. </ARG>
  2360. <TIP>Make the symbols matching pattern local</TIP>
  2361. <HELP>Given a symbol name pattern, make all the symbols matching this pattern local</HELP>
  2362. </OPTION>
  2363. <OPTION tag='MAKE_GLOBAL'>
  2364. <TYPE>simple</TYPE>
  2365. <NAME>--make_global</NAME>
  2366. <ALIAS>-g</ALIAS>
  2367. <ARG>
  2368. <TYPE>STRINGLIST</TYPE>
  2369. <STATUS>required</STATUS>
  2370. <DESCRIPTION>symbol</DESCRIPTION>
  2371. </ARG>
  2372. <TIP>Don&apos;t make global symbol static if -h is specified</TIP>
  2373. <HELP>Don&apos;t make global symbol static if -h is specified</HELP>
  2374. </OPTION>
  2375. <OPTION tag='MAKE_STATIC'>
  2376. <TYPE>simple</TYPE>
  2377. <NAME>--make_static</NAME>
  2378. <ALIAS>-h</ALIAS>
  2379. <TIP>Make all global symbols static</TIP>
  2380. <HELP>Make all global symbols static</HELP>
  2381. </OPTION>
  2382. <OPTION tag='MAP_FILE'>
  2383. <TYPE>simple</TYPE>
  2384. <NAME>--map_file</NAME>
  2385. <PREFERREDALIAS>-m</PREFERREDALIAS>
  2386. <ARG>
  2387. <TYPE>STRING</TYPE>
  2388. <STATUS>required</STATUS>
  2389. <DESCRIPTION>file</DESCRIPTION>
  2390. </ARG>
  2391. <TIP>Link information (map) listed into &lt;file&gt;</TIP>
  2392. <HELP>Produce a listing of all input and output sections into &lt;file&gt;.</HELP>
  2393. </OPTION>
  2394. <OPTION tag='MAPFILE_CONTENTS'>
  2395. <TYPE>simple</TYPE>
  2396. <NAME>--mapfile_contents</NAME>
  2397. <ARG>
  2398. <TYPE>STRING</TYPE>
  2399. <STATUS>required</STATUS>
  2400. <DESCRIPTION>attribute</DESCRIPTION>
  2401. </ARG>
  2402. <TIP>Display attribute settings in map file</TIP>
  2403. <HELP>Enable the display of &lt;attribute&gt; or disable with no&lt;attribute&gt; in the linker generated map file. Multiple attributes can be specified by separating them with commas (e.g. --mapfile_contents=sections,nosymbols). Type --mapfile_contents=help for a list of attributes.</HELP>
  2404. </OPTION>
  2405. <OPTION tag='NO_DEMANGLE'>
  2406. <TYPE>simple</TYPE>
  2407. <NAME>--no_demangle</NAME>
  2408. <TIP>Don&apos;t demangle symbol names in diagnostics</TIP>
  2409. <HELP>Don&apos;t demangle symbol names in diagnostics</HELP>
  2410. </OPTION>
  2411. <OPTION tag='NO_SYM_MERGE'>
  2412. <TYPE>simple</TYPE>
  2413. <NAME>--no_sym_merge</NAME>
  2414. <ALIAS>-b</ALIAS>
  2415. <TIP>No type merging in symbolic debugging information</TIP>
  2416. <HELP>Disable type merging in symbolic debugging information.</HELP>
  2417. </OPTION>
  2418. <OPTION tag='NO_SYMTABLE'>
  2419. <TYPE>simple</TYPE>
  2420. <NAME>--no_symtable</NAME>
  2421. <ALIAS>-s</ALIAS>
  2422. <TIP>Strip symbol table and line number entries</TIP>
  2423. <HELP>Strip symbol table and line number entries</HELP>
  2424. </OPTION>
  2425. <OPTION tag='NO_WARNINGS'>
  2426. <TYPE>simple</TYPE>
  2427. <NAME>--no_warnings</NAME>
  2428. <TIP>Suppress warnings</TIP>
  2429. <HELP>Suppress warnings</HELP>
  2430. <CONFLICT>EMIT_WARNINGS_AS_ERRORS</CONFLICT>
  2431. </OPTION>
  2432. <OPTION tag='OUTPUT_FILE'>
  2433. <TYPE>simple</TYPE>
  2434. <NAME>--output_file</NAME>
  2435. <PREFERREDALIAS>-o</PREFERREDALIAS>
  2436. <ARG>
  2437. <TYPE>STRING</TYPE>
  2438. <STATUS>required</STATUS>
  2439. <DESCRIPTION>file</DESCRIPTION>
  2440. </ARG>
  2441. <TIP>Specify output file name</TIP>
  2442. <HELP>Full filename of the output file.</HELP>
  2443. </OPTION>
  2444. <OPTION tag='PREFERRED_ORDER'>
  2445. <TYPE>simple</TYPE>
  2446. <NAME>--preferred_order</NAME>
  2447. <ARG>
  2448. <TYPE>STRINGLIST</TYPE>
  2449. <STATUS>required</STATUS>
  2450. <DESCRIPTION>function</DESCRIPTION>
  2451. </ARG>
  2452. <TIP>Add &lt;function&gt; to preferred placement order list</TIP>
  2453. <HELP>Insert a function into the preferred function order list for placement. Functions that are close to each other in the preferred function order list will tend to be placed close together (increase program locality between them). Static functions of the same name can be distinguished from each other by prefixing the function name with the path and file in which the function is defined followed by a &apos;:&apos; character to delimit the beginning of the function name.</HELP>
  2454. </OPTION>
  2455. <OPTION tag='PRIORITY'>
  2456. <TYPE>simple</TYPE>
  2457. <NAME>--priority</NAME>
  2458. <ALIAS>-priority</ALIAS>
  2459. <TIP>Search libraries in priority order</TIP>
  2460. <HELP>Search libraries in priority order</HELP>
  2461. </OPTION>
  2462. <OPTION tag='RAM_MODEL'>
  2463. <TYPE>simple</TYPE>
  2464. <NAME>--ram_model</NAME>
  2465. <ALIAS>-cr</ALIAS>
  2466. <TIP>Link using RAM autoinitialization model</TIP>
  2467. <HELP>Link using RAM autoinitialization model</HELP>
  2468. <RESETS>ROM_MODEL</RESETS>
  2469. </OPTION>
  2470. <OPTION tag='RELOCATABLE'>
  2471. <TYPE>simple</TYPE>
  2472. <NAME>--relocatable</NAME>
  2473. <ALIAS>-r</ALIAS>
  2474. <TIP>Produce a relocatable output module</TIP>
  2475. <HELP>Produce a relocatable output module</HELP>
  2476. </OPTION>
  2477. <OPTION tag='REREAD_LIBS'>
  2478. <TYPE>simple</TYPE>
  2479. <NAME>--reread_libs</NAME>
  2480. <ALIAS>-x</ALIAS>
  2481. <TIP>Reread libraries; resolve backward references</TIP>
  2482. <HELP>Reread libraries; resolve backward references</HELP>
  2483. </OPTION>
  2484. <OPTION tag='RETAIN'>
  2485. <TYPE>simple</TYPE>
  2486. <NAME>--retain</NAME>
  2487. <ARG>
  2488. <TYPE>STRINGLIST</TYPE>
  2489. <STATUS>required</STATUS>
  2490. <DESCRIPTION>sym_or_scn_spec</DESCRIPTION>
  2491. </ARG>
  2492. <TIP>Specify symbols/sections to be retained by linker</TIP>
  2493. <HELP>When --unused_section_elimination is enabled, the ELF linker does not include a section in the final link if it is not needed in the executable to resolve references. This option can be used to tell the linker to retain a list of sections that would otherwise be not retained. This option accepts the wild cards &apos;*&apos; and &apos;?&apos; and when wild cards are used, the argument should be in quotes. The following option parameters are accepted:
  2494. --retain=symbol_spec retains sections that define symbol matching the argument. For ex, --retain=&apos;init*&apos; retains sections that define symbols that start with &apos;init&apos;. User may not specify --retain=&apos;*&apos;.
  2495. --retain=file_spec(scn_spec [,scn_spec ...]) retains sections matching scn_spec(s) from files matching file_spec. For ex, the argument &apos;*(.initvec)&apos; causes the linker to retain .initvec sections from all input files.
  2496. NOTE: User can specify --retain=&apos;*(*)&apos; to retain all the sections from all the input object files. Note that this does not prevent sections from library members from being optimized out. If you want to totally disable unused section elimination, please use --unused_section_elimination=off.
  2497. --retain=ar_spec&lt;mem_spec, [mem_spec ...]&gt;(scn_spec, [scn_spec ...]) retains sections matching scn_spec(s) from members matching mem_spec(s) from archive files matching ar_spec. For ex, rts32eabi.lib&lt;printf.obj&gt;(.text) causes the linker to retain .text section from printf.obj in rts32eabi.lib. If the library is specified with -l option (-lrts32eabi.lib) the library search path is used to search the library. User may not specify &apos;*&lt;*&gt;(*)&apos;. </HELP>
  2498. </OPTION>
  2499. <OPTION tag='ROM_MODEL'>
  2500. <TYPE>simple</TYPE>
  2501. <NAME>--rom_model</NAME>
  2502. <ALIAS>-c</ALIAS>
  2503. <TIP>Link using ROM autoinitialization model</TIP>
  2504. <HELP>Link using ROM autoinitialization model</HELP>
  2505. <RESETS>RAM_MODEL</RESETS>
  2506. </OPTION>
  2507. <OPTION tag='RUN_ABS'>
  2508. <TYPE>cmdline</TYPE>
  2509. <NAME>--run_abs</NAME>
  2510. <ALIAS>-abs</ALIAS>
  2511. <TIP>Produce absolute listing file</TIP>
  2512. <HELP>Produce absolute listing file</HELP>
  2513. </OPTION>
  2514. <OPTION tag='SCAN_LIBRARIES'>
  2515. <TYPE>simple</TYPE>
  2516. <NAME>--scan_libraries</NAME>
  2517. <ALIAS>-scanlibs</ALIAS>
  2518. <TIP>Scan libraries for duplicate symbol definitions</TIP>
  2519. <HELP>Check whether symbol definitions that are pulled into the link are duplicated in any of the libraries included in the build. This information is typically ignored as the linker will pull in the first definition it encounters.</HELP>
  2520. </OPTION>
  2521. <OPTION tag='SEARCH_PATH'>
  2522. <TYPE>simple</TYPE>
  2523. <NAME>--search_path</NAME>
  2524. <PREFERREDALIAS>-i</PREFERREDALIAS>
  2525. <ARG>
  2526. <TYPE>STRINGLIST</TYPE>
  2527. <STATUS>required</STATUS>
  2528. <DESCRIPTION>dir</DESCRIPTION>
  2529. </ARG>
  2530. <TIP>Add &lt;dir&gt; to library search path</TIP>
  2531. <HELP>Alter the library-search algorithm to look in dir before looking in the default location. This option must appear before the -l option.</HELP>
  2532. </OPTION>
  2533. <OPTION tag='SET_ERROR_LIMIT'>
  2534. <TYPE>simple</TYPE>
  2535. <NAME>--set_error_limit</NAME>
  2536. <ARG>
  2537. <TYPE>NUMBER</TYPE>
  2538. <STATUS>required</STATUS>
  2539. <DESCRIPTION>count</DESCRIPTION>
  2540. </ARG>
  2541. <TIP>Set error limit to &lt;count&gt;</TIP>
  2542. <HELP>Set error limit to &lt;count&gt;</HELP>
  2543. </OPTION>
  2544. <OPTION tag='STACK_SIZE'>
  2545. <TYPE>simple</TYPE>
  2546. <NAME>--stack_size</NAME>
  2547. <ALIAS>-stack</ALIAS>
  2548. <ALIAS>--stack</ALIAS>
  2549. <ARG>
  2550. <TYPE>HEXNUMBER</TYPE>
  2551. <STATUS>required</STATUS>
  2552. <DESCRIPTION>size</DESCRIPTION>
  2553. </ARG>
  2554. <TIP>Set C system stack size</TIP>
  2555. <HELP>Set C system stack size</HELP>
  2556. </OPTION>
  2557. <OPTION tag='STRICT_COMPATIBILITY'>
  2558. <TYPE>simple</TYPE>
  2559. <NAME>--strict_compatibility</NAME>
  2560. <ARG>
  2561. <TYPE>ONEOF</TYPE>
  2562. <STATUS>optional</STATUS>
  2563. <DESCRIPTION>on,off</DESCRIPTION>
  2564. <ONEOF>on</ONEOF>
  2565. <ONEOF>off</ONEOF>
  2566. <DEFAULT>on</DEFAULT>
  2567. </ARG>
  2568. <TIP>Strict compatibility checking</TIP>
  2569. <HELP>Strict compatibility checking</HELP>
  2570. </OPTION>
  2571. <OPTION tag='SYMBOL_MAP'>
  2572. <TYPE>simple</TYPE>
  2573. <NAME>--symbol_map</NAME>
  2574. <ARG>
  2575. <TYPE>STRINGLIST</TYPE>
  2576. <STATUS>required</STATUS>
  2577. <DESCRIPTION>refname=defname</DESCRIPTION>
  2578. </ARG>
  2579. <TIP>Specify a symbol map, mapping refname to defname</TIP>
  2580. <HELP>Symbol mapping allows a symbol reference to be resolved by a symbol with different name. Symbol mapping allows functions to be overridden with alternate definitions. This feature can be used to patch in alternate implementations, which provide patches (bug fixes) or alternate functionality. For example, the option --symbol_map=&apos;foo=foo_patch&apos; makes the linker resolve any references to foo by the definition foo_patch.</HELP>
  2581. </OPTION>
  2582. <OPTION tag='UNDEF_SYM'>
  2583. <TYPE>simple</TYPE>
  2584. <NAME>--undef_sym</NAME>
  2585. <ALIAS>-u</ALIAS>
  2586. <ARG>
  2587. <TYPE>STRINGLIST</TYPE>
  2588. <STATUS>required</STATUS>
  2589. <DESCRIPTION>sym</DESCRIPTION>
  2590. </ARG>
  2591. <TIP>Add &lt;sym&gt; to symbol table as an unresolved symbol</TIP>
  2592. <HELP>Add &lt;sym&gt; to symbol table as an unresolved symbol</HELP>
  2593. </OPTION>
  2594. <OPTION tag='UNDEFINE'>
  2595. <TYPE>simple</TYPE>
  2596. <NAME>--undefine</NAME>
  2597. <ARG>
  2598. <TYPE>STRINGLIST</TYPE>
  2599. <STATUS>required</STATUS>
  2600. <DESCRIPTION>name</DESCRIPTION>
  2601. </ARG>
  2602. <TIP>Undefine preprocessor macro _name_</TIP>
  2603. <HELP>Undefine preprocessor macro _name_</HELP>
  2604. </OPTION>
  2605. <OPTION tag='UNHIDE'>
  2606. <TYPE>simple</TYPE>
  2607. <NAME>--unhide</NAME>
  2608. <ARG>
  2609. <TYPE>STRINGLIST</TYPE>
  2610. <STATUS>required</STATUS>
  2611. <DESCRIPTION>pattern</DESCRIPTION>
  2612. </ARG>
  2613. <TIP>Exclude symbols matching pattern from hiding</TIP>
  2614. <HELP>The option --hide=hide_pattern makes the symbols matching the hide_pattern hidden. The --unhide=unhide_pattern option excludes symbols matching unhide_pattern from symbol hiding provided unhide_pattern is more restrictive than hide_pattern. </HELP>
  2615. </OPTION>
  2616. <OPTION tag='UNUSED_SECTION_ELIMINATION'>
  2617. <TYPE>simple</TYPE>
  2618. <NAME>--unused_section_elimination</NAME>
  2619. <ARG>
  2620. <TYPE>ONEOF</TYPE>
  2621. <STATUS>optional</STATUS>
  2622. <DESCRIPTION>on,off</DESCRIPTION>
  2623. <ONEOF>on</ONEOF>
  2624. <ONEOF>off</ONEOF>
  2625. <DEFAULT>on</DEFAULT>
  2626. </ARG>
  2627. <TIP>Eliminate sections not needed in the executable</TIP>
  2628. <HELP>In order to minimize memory use, the linker does not include a section that is not needed to resolve any references in the final executable. --unused_section_elimination=off can be used to disable this optimization.</HELP>
  2629. </OPTION>
  2630. <OPTION tag='USE_HW_MPY'>
  2631. <TYPE>simple</TYPE>
  2632. <NAME>--use_hw_mpy</NAME>
  2633. <ARG>
  2634. <TYPE>ONEOF</TYPE>
  2635. <STATUS>optional</STATUS>
  2636. <DESCRIPTION>16,32,F5,none</DESCRIPTION>
  2637. <ONEOF>16</ONEOF>
  2638. <ONEOF>32</ONEOF>
  2639. <ONEOF>F5</ONEOF>
  2640. <ONEOF>none</ONEOF>
  2641. <DEFAULT>16</DEFAULT>
  2642. </ARG>
  2643. <TIP>Deprecated: Now a compiler option instead of linker option</TIP>
  2644. <HELP>Deprecated: This option was changed from a linker option to a compiler option to allow for inlining of hardware multiply calls. Setting this option here only enables using RTS hw mpy routines instead of software mpy routines. It will not allow for possible inlining of hardware mpy calls.</HELP>
  2645. </OPTION>
  2646. <OPTION tag='VERBOSE_DIAGNOSTICS'>
  2647. <TYPE>simple</TYPE>
  2648. <NAME>--verbose_diagnostics</NAME>
  2649. <TIP>Verbose diagnostics</TIP>
  2650. <HELP>Verbose diagnostics</HELP>
  2651. </OPTION>
  2652. <OPTION tag='WARN_SECTIONS'>
  2653. <TYPE>simple</TYPE>
  2654. <NAME>--warn_sections</NAME>
  2655. <ALIAS>-w</ALIAS>
  2656. <TIP>Warn if an unspecified output section is created</TIP>
  2657. <HELP>Warn if an unspecified output section is created</HELP>
  2658. </OPTION>
  2659. <OPTION tag='XML_LINK_INFO'>
  2660. <TYPE>simple</TYPE>
  2661. <NAME>--xml_link_info</NAME>
  2662. <ALIAS>-xml_link_info</ALIAS>
  2663. <ARG>
  2664. <TYPE>STRING</TYPE>
  2665. <STATUS>required</STATUS>
  2666. <DESCRIPTION>file</DESCRIPTION>
  2667. </ARG>
  2668. <TIP>Detailed link information data-base into &lt;file&gt;</TIP>
  2669. <HELP>Produce a detailed link information data-base into the file named &lt;file&gt;.</HELP>
  2670. </OPTION>
  2671. <OPTION tag='ZERO_INIT'>
  2672. <TYPE>simple</TYPE>
  2673. <NAME>--zero_init</NAME>
  2674. <ARG>
  2675. <TYPE>ONEOF</TYPE>
  2676. <STATUS>optional</STATUS>
  2677. <DESCRIPTION>on,off</DESCRIPTION>
  2678. <ONEOF>on</ONEOF>
  2679. <ONEOF>off</ONEOF>
  2680. <DEFAULT>on</DEFAULT>
  2681. </ARG>
  2682. <TIP>Zero initialize ELF uninitialized sections</TIP>
  2683. <HELP>This option indicates that the linker should generate compressed cinit table records that zero initializes ELF uninitialized sections during boot. This option is ignored if --rom_model option is not specified.</HELP>
  2684. </OPTION>
  2685. <MUTEX tag='MUTEX_INITIALIZATION_MODEL'>
  2686. <NAME>Initialization model</NAME>
  2687. <SEVERITY>RESET</SEVERITY>
  2688. <STATUS>optional</STATUS>
  2689. <MEMBER>ROM_MODEL</MEMBER>
  2690. <MEMBER>RAM_MODEL</MEMBER>
  2691. </MUTEX>
  2692. </DEFINITIONS>
  2693. <BASIC>
  2694. </BASIC>
  2695. <CATEGORY tag='LNKBASIC'>
  2696. <NAME>Basic Options:</NAME>
  2697. <MEMBER>MAP_FILE</MEMBER>
  2698. <MEMBER>OUTPUT_FILE</MEMBER>
  2699. <MEMBER>STACK_SIZE</MEMBER>
  2700. <MEMBER>HEAP_SIZE</MEMBER>
  2701. <MEMBER>CINIT_HOLD_WDT</MEMBER>
  2702. </CATEGORY>
  2703. <CATEGORY tag='LNKDIR'>
  2704. <NAME>File Search Path:</NAME>
  2705. <MEMBER>LIBRARY</MEMBER>
  2706. <MEMBER>SEARCH_PATH</MEMBER>
  2707. <MEMBER>PRIORITY</MEMBER>
  2708. <MEMBER>REREAD_LIBS</MEMBER>
  2709. <MEMBER>DISABLE_AUTO_RTS</MEMBER>
  2710. </CATEGORY>
  2711. <CATEGORY tag='LNKADV'>
  2712. <NAME>Advanced Options:</NAME>
  2713. <MEMBERCAT>LNKCPP</MEMBERCAT>
  2714. <MEMBERCAT>LNKDIAG</MEMBERCAT>
  2715. <MEMBERCAT>LNKOUTF</MEMBERCAT>
  2716. <MEMBERCAT>LNKSYM</MEMBERCAT>
  2717. <MEMBERCAT>LNKRTENV</MEMBERCAT>
  2718. <MEMBERCAT>LNKOPT</MEMBERCAT>
  2719. <MEMBERCAT>LNKMISC</MEMBERCAT>
  2720. <MEMBERCAT>LNKINT</MEMBERCAT>
  2721. <MEMBERCAT>DYNAMIC</MEMBERCAT>
  2722. <MEMBERCAT>LNKULP</MEMBERCAT>
  2723. <MEMBERCAT>LNKADVICE</MEMBERCAT>
  2724. </CATEGORY>
  2725. <CATEGORY tag='LNKCPP'>
  2726. <NAME>Command File Preprocessing:</NAME>
  2727. <MEMBER>UNDEFINE</MEMBER>
  2728. <MEMBER>DEFINE</MEMBER>
  2729. <MEMBER>DISABLE_PP</MEMBER>
  2730. </CATEGORY>
  2731. <CATEGORY tag='LNKDIAG'>
  2732. <NAME>Diagnostics:</NAME>
  2733. <MEMBER>DIAG_REMARK</MEMBER>
  2734. <MEMBER>DIAG_WARNING</MEMBER>
  2735. <MEMBER>BUFFER_DIAGNOSTICS</MEMBER>
  2736. <MEMBER>DIAG_ERROR</MEMBER>
  2737. <MEMBER>SET_ERROR_LIMIT</MEMBER>
  2738. <MEMBER>ISSUE_REMARKS</MEMBER>
  2739. <MEMBER>WARN_SECTIONS</MEMBER>
  2740. <MEMBER>DIAG_SUPPRESS</MEMBER>
  2741. <MEMBER>EMIT_WARNINGS_AS_ERRORS</MEMBER>
  2742. <MEMBER>NO_DEMANGLE</MEMBER>
  2743. <MEMBER>VERBOSE_DIAGNOSTICS</MEMBER>
  2744. <MEMBER>NO_WARNINGS</MEMBER>
  2745. <MEMBER>DISPLAY_ERROR_NUMBER</MEMBER>
  2746. <MEMBER>DIAG_WRAP</MEMBER>
  2747. </CATEGORY>
  2748. <CATEGORY tag='LNKOUTF'>
  2749. <NAME>Linker Output:</NAME>
  2750. <MEMBER>XML_LINK_INFO</MEMBER>
  2751. <MEMBER>RELOCATABLE</MEMBER>
  2752. <MEMBER>RUN_ABS</MEMBER>
  2753. <MEMBER>ECC__DATA_ERROR</MEMBER>
  2754. <MEMBER>ABSOLUTE_EXE</MEMBER>
  2755. <MEMBER>MAPFILE_CONTENTS</MEMBER>
  2756. <MEMBER>ECC__ECC_ERROR</MEMBER>
  2757. </CATEGORY>
  2758. <CATEGORY tag='LNKSYM'>
  2759. <NAME>Symbol Management:</NAME>
  2760. <MEMBER>SYMBOL_MAP</MEMBER>
  2761. <MEMBER>SCAN_LIBRARIES</MEMBER>
  2762. <MEMBER>GLOBALIZE</MEMBER>
  2763. <MEMBER>HIDE</MEMBER>
  2764. <MEMBER>LOCALIZE</MEMBER>
  2765. <MEMBER>RETAIN</MEMBER>
  2766. <MEMBER>UNHIDE</MEMBER>
  2767. <MEMBER>NO_SYM_MERGE</MEMBER>
  2768. <MEMBER>MAKE_GLOBAL</MEMBER>
  2769. <MEMBER>USE_HW_MPY</MEMBER>
  2770. <MEMBER>NO_SYMTABLE</MEMBER>
  2771. <MEMBER>MAKE_STATIC</MEMBER>
  2772. <MEMBER>ENTRY_POINT</MEMBER>
  2773. <MEMBER>UNDEF_SYM</MEMBER>
  2774. </CATEGORY>
  2775. <CATEGORY tag='LNKRTENV'>
  2776. <NAME>Runtime Environment:</NAME>
  2777. <MEMBER>MUTEX_INITIALIZATION_MODEL</MEMBER>
  2778. <MEMBER>FILL_VALUE</MEMBER>
  2779. <MEMBER>ARG_SIZE</MEMBER>
  2780. </CATEGORY>
  2781. <CATEGORY tag='LNKOPT'>
  2782. <NAME>Linktime Optimization:</NAME>
  2783. <MEMBER>COMPRESS_DWARF</MEMBER>
  2784. <MEMBER>CINIT_COMPRESSION</MEMBER>
  2785. <MEMBER>COPY_COMPRESSION</MEMBER>
  2786. <MEMBER>UNUSED_SECTION_ELIMINATION</MEMBER>
  2787. </CATEGORY>
  2788. <CATEGORY tag='LNKMISC'>
  2789. <NAME>Miscellaneous:</NAME>
  2790. <MEMBER>LINKER_HELP</MEMBER>
  2791. <MEMBER>STRICT_COMPATIBILITY</MEMBER>
  2792. <MEMBER>ZERO_INIT</MEMBER>
  2793. <MEMBER>DISABLE_CLINK</MEMBER>
  2794. <MEMBER>PREFERRED_ORDER</MEMBER>
  2795. </CATEGORY>
  2796. </TOOL>
  2797. </TOOLSET>