<?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>CodeWarrior for MCU中的主题 Re: nofralloc error</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/nofralloc-error/m-p/302819#M10792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think this post is at right place in License box.&lt;/P&gt;&lt;P&gt;I will move it.&lt;/P&gt;&lt;P&gt;Following the info I found it seems you're using CW for MCU V10.5 for MPC564x device.&lt;/P&gt;&lt;P&gt;You want to use the nofralloc instruction.&lt;/P&gt;&lt;P&gt;In the MCU_Power-Architecture_Compiler.pdf manual, page 346 I found the info:&lt;/P&gt;&lt;P&gt;+++++++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;20.3.5 nofralloc&lt;/P&gt;&lt;P&gt;Specifies that the function will build a stack frame explicitly.&lt;/P&gt;&lt;P&gt;nofralloc&lt;/P&gt;&lt;P&gt;Use the nofralloc directive so that an inline assembly function does not build a stack&lt;/P&gt;&lt;P&gt;frame. When you use nofralloc , if you have local variables, parameters or make function&lt;/P&gt;&lt;P&gt;calls, you are responsible for creating and deleting your own stack frame. For an example&lt;/P&gt;&lt;P&gt;of nofralloc , see the file __start.c in the directory:&lt;/P&gt;&lt;P&gt;InstallDir\PowerPC_EABI_Support\Runtime\Src&lt;/P&gt;&lt;P&gt;where InstallDir is the name of the directory on your host computer where you installed&lt;/P&gt;&lt;P&gt;your CodeWarrior development tools.&lt;/P&gt;&lt;P&gt;+++++++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The path provided is not correct.&lt;/P&gt;&lt;P&gt;Please have a look to \CW MCU v10.5\MCU\PA_Support\ewl\EWL_Runtime\Runtime_PA\Source folder.&lt;/P&gt;&lt;P&gt;the __start.c will included the following:&lt;/P&gt;&lt;P&gt;++++++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;asm void __start(register int argc, register char **argv, register char **envp)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nofralloc&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;&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; /* MWERKS: explicitly no stack */&lt;/P&gt;&lt;P&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* frame allocation */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r14, argc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;++++++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2014 10:20:14 GMT</pubDate>
    <dc:creator>trytohelp</dc:creator>
    <dc:date>2014-03-25T10:20:14Z</dc:date>
    <item>
      <title>nofralloc error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/nofralloc-error/m-p/302818#M10791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when building the project an error is issued, what is the reason?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 15:16:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/nofralloc-error/m-p/302818#M10791</guid>
      <dc:creator>olegivanus</dc:creator>
      <dc:date>2014-03-24T15:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: nofralloc error</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/nofralloc-error/m-p/302819#M10792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think this post is at right place in License box.&lt;/P&gt;&lt;P&gt;I will move it.&lt;/P&gt;&lt;P&gt;Following the info I found it seems you're using CW for MCU V10.5 for MPC564x device.&lt;/P&gt;&lt;P&gt;You want to use the nofralloc instruction.&lt;/P&gt;&lt;P&gt;In the MCU_Power-Architecture_Compiler.pdf manual, page 346 I found the info:&lt;/P&gt;&lt;P&gt;+++++++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;20.3.5 nofralloc&lt;/P&gt;&lt;P&gt;Specifies that the function will build a stack frame explicitly.&lt;/P&gt;&lt;P&gt;nofralloc&lt;/P&gt;&lt;P&gt;Use the nofralloc directive so that an inline assembly function does not build a stack&lt;/P&gt;&lt;P&gt;frame. When you use nofralloc , if you have local variables, parameters or make function&lt;/P&gt;&lt;P&gt;calls, you are responsible for creating and deleting your own stack frame. For an example&lt;/P&gt;&lt;P&gt;of nofralloc , see the file __start.c in the directory:&lt;/P&gt;&lt;P&gt;InstallDir\PowerPC_EABI_Support\Runtime\Src&lt;/P&gt;&lt;P&gt;where InstallDir is the name of the directory on your host computer where you installed&lt;/P&gt;&lt;P&gt;your CodeWarrior development tools.&lt;/P&gt;&lt;P&gt;+++++++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The path provided is not correct.&lt;/P&gt;&lt;P&gt;Please have a look to \CW MCU v10.5\MCU\PA_Support\ewl\EWL_Runtime\Runtime_PA\Source folder.&lt;/P&gt;&lt;P&gt;the __start.c will included the following:&lt;/P&gt;&lt;P&gt;++++++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;asm void __start(register int argc, register char **argv, register char **envp)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nofralloc&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;&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; /* MWERKS: explicitly no stack */&lt;/P&gt;&lt;P&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* frame allocation */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r14, argc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;++++++++++++++++++++++++++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 10:20:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/nofralloc-error/m-p/302819#M10792</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2014-03-25T10:20:14Z</dc:date>
    </item>
  </channel>
</rss>

