<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can I compile an assembly file(.s file) with .c files in codewarrior10.6? in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Can-I-compile-an-assembly-file-s-file-with-c-files-in/m-p/371760#M2011</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried with CodeWarrior v10.6, and also have problem with the assembly file compiling. I have contacted compiler team for the solution. &lt;/P&gt;&lt;P&gt;Now, you can use embedded assembly code in C file to work it around, just like below:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;__declspec(section ".init") __asm void cfg_WATCHDOG(void);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;__asm void cfg_WATCHDOG(void)&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;{&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nofralloc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Clear the soft lock bit SWT_CR.SLKSWT_CR: */&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* SR --&amp;gt; 0x0000c520 */&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; lis r4, 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; ori r4, r4, SR_WSC_1&lt;SPAN style="text-decoration: underline;"&gt;@&lt;/SPAN&gt;l&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; lis r3, SWT_SR&lt;SPAN style="text-decoration: underline;"&gt;@&lt;/SPAN&gt;ha&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; stw r4, SWT_SR&lt;SPAN style="text-decoration: underline;"&gt;@&lt;/SPAN&gt;l(r3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #3f7f5f;"&gt;/* SR --&amp;gt; 0x0000d928 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; lis r4, 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; ori r4, r4, SR_WSC_2&lt;SPAN style="text-decoration: underline;"&gt;@&lt;/SPAN&gt;l&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; stw r4, SWT_SR&lt;SPAN style="text-decoration: underline;"&gt;@&lt;/SPAN&gt;l(r3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #3f7f5f;"&gt;/* Disable &lt;SPAN style="text-decoration: underline;"&gt;watchdog&lt;/SPAN&gt;, SWT.CR.WEN = 0*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; lis r4, CR_VALUE&lt;SPAN style="text-decoration: underline;"&gt;@&lt;/SPAN&gt;h&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; ori r4, r4, CR_VALUE&lt;SPAN style="text-decoration: underline;"&gt;@&lt;/SPAN&gt;l&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; lis r3, SWT_CR&lt;SPAN style="text-decoration: underline;"&gt;@&lt;/SPAN&gt;ha&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; stw r4, SWT_CR&lt;SPAN style="text-decoration: underline;"&gt;@&lt;/SPAN&gt;l(r3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; blr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I will get back to this issue as soon as I have the solution for assembly files compiling in CW10.6. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Aug 2014 09:05:28 GMT</pubDate>
    <dc:creator>TICS_Fiona</dc:creator>
    <dc:date>2014-08-25T09:05:28Z</dc:date>
    <item>
      <title>Can I compile an assembly file(.s file) with .c files in codewarrior10.6?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Can-I-compile-an-assembly-file-s-file-with-c-files-in/m-p/371759#M2010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! I'm using CW10.6 for MPC5646B, now I need to add an assembly file(.s file) to my project, can I compile it with other .c files? I try it, but it makes a lot of errors.&lt;/P&gt;&lt;P&gt;Can anybody help me? There is an function in the assembly file, I need to call it in another .c file. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 07:20:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Can-I-compile-an-assembly-file-s-file-with-c-files-in/m-p/371759#M2010</guid>
      <dc:creator>weiranhe</dc:creator>
      <dc:date>2014-08-21T07:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can I compile an assembly file(.s file) with .c files in codewarrior10.6?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Can-I-compile-an-assembly-file-s-file-with-c-files-in/m-p/371760#M2011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried with CodeWarrior v10.6, and also have problem with the assembly file compiling. I have contacted compiler team for the solution. &lt;/P&gt;&lt;P&gt;Now, you can use embedded assembly code in C file to work it around, just like below:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;__declspec(section ".init") __asm void cfg_WATCHDOG(void);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;__asm void cfg_WATCHDOG(void)&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;{&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nofralloc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Clear the soft lock bit SWT_CR.SLKSWT_CR: */&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* SR --&amp;gt; 0x0000c520 */&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; lis r4, 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; ori r4, r4, SR_WSC_1&lt;SPAN style="text-decoration: underline;"&gt;@&lt;/SPAN&gt;l&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; lis r3, SWT_SR&lt;SPAN style="text-decoration: underline;"&gt;@&lt;/SPAN&gt;ha&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; stw r4, SWT_SR&lt;SPAN style="text-decoration: underline;"&gt;@&lt;/SPAN&gt;l(r3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #3f7f5f;"&gt;/* SR --&amp;gt; 0x0000d928 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; lis r4, 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; ori r4, r4, SR_WSC_2&lt;SPAN style="text-decoration: underline;"&gt;@&lt;/SPAN&gt;l&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; stw r4, SWT_SR&lt;SPAN style="text-decoration: underline;"&gt;@&lt;/SPAN&gt;l(r3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt; &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #3f7f5f;"&gt;/* Disable &lt;SPAN style="text-decoration: underline;"&gt;watchdog&lt;/SPAN&gt;, SWT.CR.WEN = 0*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; lis r4, CR_VALUE&lt;SPAN style="text-decoration: underline;"&gt;@&lt;/SPAN&gt;h&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; ori r4, r4, CR_VALUE&lt;SPAN style="text-decoration: underline;"&gt;@&lt;/SPAN&gt;l&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; lis r3, SWT_CR&lt;SPAN style="text-decoration: underline;"&gt;@&lt;/SPAN&gt;ha&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; stw r4, SWT_CR&lt;SPAN style="text-decoration: underline;"&gt;@&lt;/SPAN&gt;l(r3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; blr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I will get back to this issue as soon as I have the solution for assembly files compiling in CW10.6. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 09:05:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Can-I-compile-an-assembly-file-s-file-with-c-files-in/m-p/371760#M2011</guid>
      <dc:creator>TICS_Fiona</dc:creator>
      <dc:date>2014-08-25T09:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can I compile an assembly file(.s file) with .c files in codewarrior10.6?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Can-I-compile-an-assembly-file-s-file-with-c-files-in/m-p/371761#M2012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the waiting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;The reported errors are due to project is created for VLE instructions and assembly file (.s) added has a BOOKE instructions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;By adding the option &lt;/SPAN&gt;-ppc_asm_to_vle&lt;SPAN style="color: #1f497d;"&gt; in (Project Properties-&amp;gt;C/C++ Build-&amp;gt;Settings-&amp;gt;Tools Seetings -&amp;gt; PowerPC Assembler -&amp;gt; General -&amp;gt; Other Flags), the below reported error should be resolved. (convert UISA/BOOKE&amp;nbsp; instructions to VLE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Fiona&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 07:03:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Can-I-compile-an-assembly-file-s-file-with-c-files-in/m-p/371761#M2012</guid>
      <dc:creator>TICS_Fiona</dc:creator>
      <dc:date>2014-08-26T07:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can I compile an assembly file(.s file) with .c files in codewarrior10.6?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Can-I-compile-an-assembly-file-s-file-with-c-files-in/m-p/371762#M2013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 宋体; font-size: 12pt;"&gt;I have tried the advice you have given, and the errors disappeared.Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 宋体; font-size: 12pt;"&gt;By the way, I have payed attention to your personal home page.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 宋体; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 09:29:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Can-I-compile-an-assembly-file-s-file-with-c-files-in/m-p/371762#M2013</guid>
      <dc:creator>weiranhe</dc:creator>
      <dc:date>2014-08-27T09:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can I compile an assembly file(.s file) with .c files in codewarrior10.6?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Can-I-compile-an-assembly-file-s-file-with-c-files-in/m-p/371763#M2014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In KDS2.0 how can i compile .S file with .c file. I couldn't find 'PowerPC Assembler' in &lt;SPAN style="color: #1f497d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; background-color: #f0fade;"&gt;Project Properties-&amp;gt;C/C++ Build-&amp;gt;Settings-&amp;gt;Tools Seetings -&amp;gt; PowerPC Assembler&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; background-color: #f0fade;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 07:16:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Can-I-compile-an-assembly-file-s-file-with-c-files-in/m-p/371763#M2014</guid>
      <dc:creator>bibinputhiyath</dc:creator>
      <dc:date>2015-05-27T07:16:20Z</dc:date>
    </item>
  </channel>
</rss>

