<?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: S12Z: __attribute__ ((aligned (4))) has no effect  in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12Z-attribute-aligned-4-has-no-effect/m-p/705188#M14142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/ZhangJennie"&gt;ZhangJennie&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you been able to reproduce what I am describing?&lt;/P&gt;&lt;P&gt;Do you need extra info?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your support,&lt;/P&gt;&lt;P&gt;Pascal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Aug 2017 15:10:13 GMT</pubDate>
    <dc:creator>pascalbrand</dc:creator>
    <dc:date>2017-08-28T15:10:13Z</dc:date>
    <item>
      <title>S12Z: __attribute__ ((aligned (4))) has no effect</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12Z-attribute-aligned-4-has-no-effect/m-p/705185#M14139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using CodeWarrior for MCU, v10.7, on S12Z target, I am not able to aligned global variables as specified in the documentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;#pragma cpp1x on&lt;BR /&gt; int foo __attribute__ ((aligned (4)));&lt;BR /&gt; void main(void) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; static_assert(__alignof__(foo) == 1, "SHOULD BE WRONG"); /* compilation OK. But it should fail */&lt;BR /&gt;&amp;nbsp; &amp;nbsp; static_assert(__alignof__(foo) == 4, "SHOULD BE OK"); /* compilation failed. But it should be ok? */&lt;BR /&gt; }&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;compiled with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;mwccs12lisa.exe alignment.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;results in the compilation error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Compiler:&lt;BR /&gt; # File: alignment.c&lt;BR /&gt; # --------------------&lt;BR /&gt; # 5: static_assert(__alignof__(foo) == 4, "SHOULD BE OK"); /* compilation failed. But it should be ok? */&lt;BR /&gt; # Error: ^^^^^^^^^^^^^^&lt;BR /&gt; # static assert check 'SHOULD BE OK' failed&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;What did I miss?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your support,&lt;BR /&gt;Pascal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 08:33:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12Z-attribute-aligned-4-has-no-effect/m-p/705185#M14139</guid>
      <dc:creator>pascalbrand</dc:creator>
      <dc:date>2017-08-23T08:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: S12Z: __attribute__ ((aligned (4))) has no effect</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12Z-attribute-aligned-4-has-no-effect/m-p/705186#M14140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pascal,&lt;/P&gt;&lt;P&gt;Can you please send me your demo project for your problem?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jennie Zhang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2017 05:52:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12Z-attribute-aligned-4-has-no-effect/m-p/705186#M14140</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2017-08-25T05:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: S12Z: __attribute__ ((aligned (4))) has no effect</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12Z-attribute-aligned-4-has-no-effect/m-p/705187#M14141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a 7zip of my project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your support,&lt;/P&gt;&lt;P&gt;Pascal;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2017 08:27:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12Z-attribute-aligned-4-has-no-effect/m-p/705187#M14141</guid>
      <dc:creator>pascalbrand</dc:creator>
      <dc:date>2017-08-25T08:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: S12Z: __attribute__ ((aligned (4))) has no effect</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12Z-attribute-aligned-4-has-no-effect/m-p/705188#M14142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/ZhangJennie"&gt;ZhangJennie&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you been able to reproduce what I am describing?&lt;/P&gt;&lt;P&gt;Do you need extra info?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your support,&lt;/P&gt;&lt;P&gt;Pascal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 15:10:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12Z-attribute-aligned-4-has-no-effect/m-p/705188#M14142</guid>
      <dc:creator>pascalbrand</dc:creator>
      <dc:date>2017-08-28T15:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: S12Z: __attribute__ ((aligned (4))) has no effect</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12Z-attribute-aligned-4-has-no-effect/m-p/705189#M14143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pascal.&lt;/P&gt;&lt;P&gt;Sorry for the late, I was not in office these days.&lt;/P&gt;&lt;P&gt;I tested your project on my side and I reproduced your problem.&lt;/P&gt;&lt;P&gt;I will contact developer for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will keep you informed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jennie Zhang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 07:52:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12Z-attribute-aligned-4-has-no-effect/m-p/705189#M14143</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2017-08-29T07:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: S12Z: __attribute__ ((aligned (4))) has no effect</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12Z-attribute-aligned-4-has-no-effect/m-p/705190#M14144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/ZhangJennie"&gt;ZhangJennie&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any news?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pascal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 08:32:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12Z-attribute-aligned-4-has-no-effect/m-p/705190#M14144</guid>
      <dc:creator>pascalbrand</dc:creator>
      <dc:date>2017-09-18T08:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: S12Z: __attribute__ ((aligned (4))) has no effect</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12Z-attribute-aligned-4-has-no-effect/m-p/705191#M14145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pascal.&lt;/P&gt;&lt;P&gt;I reproduced your problem and escalated this problem to development team.&lt;SPAN style="background: #DDFADE; font-size: 10.5pt;"&gt;with report number CMPLG-41&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I will keep you informed if I get any update there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 09:00:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/S12Z-attribute-aligned-4-has-no-effect/m-p/705191#M14145</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2017-09-19T09:00:33Z</dc:date>
    </item>
  </channel>
</rss>

