<?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>Digital Signal ControllersのトピックRe: Force variables alignment in MC56F8XXXX DSC</title>
    <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Force-variables-alignment-in-MC56F8XXXX-DSC/m-p/306585#M117</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for the info. I´ve found that from CW10.6 on it´s possible to do &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;__attribute__((aligned(2))), though it seems that &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;__attribute__((aligned(1))) is not working.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Apr 2015 08:00:49 GMT</pubDate>
    <dc:creator>cabl</dc:creator>
    <dc:date>2015-04-07T08:00:49Z</dc:date>
    <item>
      <title>Force variables alignment in MC56F8XXXX DSC</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Force-variables-alignment-in-MC56F8XXXX-DSC/m-p/306580#M112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How could one easily force alignment of variables in code (avoiding creation of specific section in linker files, and explicit placement via OBJECT)? Something similar to the #pragma pack present in other micros.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;----------------------------------&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hola,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;¿Cómo se puede fozar fácilmente la alineación de variables desde el código (evitando crear secciones nuevas en el fichero del linker y evitando tener que colocar cada variable con OBJECT)? Algo parecido a #pragma pack existente para otros micros.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gracias.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 13:30:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Force-variables-alignment-in-MC56F8XXXX-DSC/m-p/306580#M112</guid>
      <dc:creator>cabl</dc:creator>
      <dc:date>2014-04-29T13:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Force variables alignment in MC56F8XXXX DSC</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Force-variables-alignment-in-MC56F8XXXX-DSC/m-p/306581#M113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that the ALIGN command will do what you need. See ALIGN and ALIGNALL in the ELF linker file issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 18:23:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Force-variables-alignment-in-MC56F8XXXX-DSC/m-p/306581#M113</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2014-05-02T18:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Force variables alignment in MC56F8XXXX DSC</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Force-variables-alignment-in-MC56F8XXXX-DSC/m-p/306582#M114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, as far as I know, ALIGN is for the linker file, not for the code (*.c) file. I´m looking for a more flexible way that doesn´t imply changing linker file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 06:09:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Force-variables-alignment-in-MC56F8XXXX-DSC/m-p/306582#M114</guid>
      <dc:creator>cabl</dc:creator>
      <dc:date>2014-05-09T06:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Force variables alignment in MC56F8XXXX DSC</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Force-variables-alignment-in-MC56F8XXXX-DSC/m-p/306583#M115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carios&lt;/P&gt;&lt;P&gt;Thats correct, but you can add once to the linker file a section with ALIGNALL definition, and in the code putting the variables you want to align in this section.&lt;/P&gt;&lt;P&gt;The problem I have with the alignment is that you can not align data to 1 byte long, the minimum is 2 bytes. in data communication I need 1 byte too &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 13:58:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Force-variables-alignment-in-MC56F8XXXX-DSC/m-p/306583#M115</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2014-05-12T13:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Force variables alignment in MC56F8XXXX DSC</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Force-variables-alignment-in-MC56F8XXXX-DSC/m-p/306584#M116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos&lt;/P&gt;&lt;P&gt;Good news. I found out that one of our customers is doing exactly what you need.&lt;/P&gt;&lt;P&gt;The "trick" he used is adding attribute to variable definition. For example:&lt;/P&gt;&lt;P&gt;char test[6]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __attribute__((aligned(2)));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not try it yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone of CW staff watching this place, please comment. I saw no CW documentation for using attributes in code, only for LCF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 16:54:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Force-variables-alignment-in-MC56F8XXXX-DSC/m-p/306584#M116</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2014-05-15T16:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Force variables alignment in MC56F8XXXX DSC</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Force-variables-alignment-in-MC56F8XXXX-DSC/m-p/306585#M117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for the info. I´ve found that from CW10.6 on it´s possible to do &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;__attribute__((aligned(2))), though it seems that &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;__attribute__((aligned(1))) is not working.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 08:00:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Force-variables-alignment-in-MC56F8XXXX-DSC/m-p/306585#M117</guid>
      <dc:creator>cabl</dc:creator>
      <dc:date>2015-04-07T08:00:49Z</dc:date>
    </item>
  </channel>
</rss>

