<?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 ALIGN directive does not ALIGN code as expected in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/ALIGN-directive-does-not-ALIGN-code-as-expected/m-p/156416#M2407</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;I am developing an application using MC68HC908GZ60 and CodeWarrior 6.3.1 in&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;pure relocatable assembly.&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;I have two tables to read. One has 128 of 16-bit entries, the other has 256 of 8-bit&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;entries. I want to locate them on a $00 address boundary (ex: $2100, $2200) and&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;read entries using index register with either&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;mov x+,target_addr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;ldhx table_addr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;lda &amp;lt;8-bit ADC input&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;tax&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;lda ,x&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;'ALIGN 256' directive does not align at all and this mistake is clearly seen in&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;Project.map as table start addresses are $214C $1E39.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;Why compiler is ignoring my ALIGN directive? What should I do to really ALIGN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;my tables?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;code snippets:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;SINETABLE SECTION&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;ALIGN $100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;sinetable: dc.w 2146, 2244, 2341, 2438, 2533, 2628, 2721, 2813&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;dc.w 2903, 2990, 3076, 3159, 3239, 3316, 3391, 3462&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;...........&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;EXPTABLE SECTION&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;ALIGN 256&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;exptable: dc.b 0, 0, 0, 0, 0, 0, 0, 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;dc.b 1, 1, 1, 1, 1, 1, 1, 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;............&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;from Project.map :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;- PROCEDURES:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;sinetable 1E39 10 16 2 MOTOR_Code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;VAR00001 1E49 10 16 0 MOTOR_Code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;VAR00002 1E59 10 16 0 MOTOR_Code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;......&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;exptable 214C 8 8 1 EXPTABLE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;VAR00001 2154 8 8 0 EXPTABLE&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Oct 2010 23:19:16 GMT</pubDate>
    <dc:creator>admin</dc:creator>
    <dc:date>2010-10-19T23:19:16Z</dc:date>
    <item>
      <title>ALIGN directive does not ALIGN code as expected</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/ALIGN-directive-does-not-ALIGN-code-as-expected/m-p/156416#M2407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;I am developing an application using MC68HC908GZ60 and CodeWarrior 6.3.1 in&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;pure relocatable assembly.&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;I have two tables to read. One has 128 of 16-bit entries, the other has 256 of 8-bit&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;entries. I want to locate them on a $00 address boundary (ex: $2100, $2200) and&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;read entries using index register with either&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;mov x+,target_addr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;ldhx table_addr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;lda &amp;lt;8-bit ADC input&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;tax&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;lda ,x&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;'ALIGN 256' directive does not align at all and this mistake is clearly seen in&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;Project.map as table start addresses are $214C $1E39.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;Why compiler is ignoring my ALIGN directive? What should I do to really ALIGN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;my tables?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;code snippets:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;SINETABLE SECTION&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;ALIGN $100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;sinetable: dc.w 2146, 2244, 2341, 2438, 2533, 2628, 2721, 2813&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;dc.w 2903, 2990, 3076, 3159, 3239, 3316, 3391, 3462&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;...........&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;EXPTABLE SECTION&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;ALIGN 256&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;exptable: dc.b 0, 0, 0, 0, 0, 0, 0, 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;dc.b 1, 1, 1, 1, 1, 1, 1, 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;............&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;from Project.map :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;- PROCEDURES:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;sinetable 1E39 10 16 2 MOTOR_Code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;VAR00001 1E49 10 16 0 MOTOR_Code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;VAR00002 1E59 10 16 0 MOTOR_Code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;......&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;exptable 214C 8 8 1 EXPTABLE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;VAR00001 2154 8 8 0 EXPTABLE&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 23:19:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/ALIGN-directive-does-not-ALIGN-code-as-expected/m-p/156416#M2407</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2010-10-19T23:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: ALIGN directive does not ALIGN code as expected</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/ALIGN-directive-does-not-ALIGN-code-as-expected/m-p/156417#M2408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Out of the assembler manual:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;***************************************************************************************&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;ALIGN&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; - &lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Align&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; Location Counter&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="nofollow" target="_blank"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;A rel="nofollow" target="_blank"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;ALIGN&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &amp;lt;n&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="nofollow" target="_blank"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Synonym&lt;/P&gt;&lt;P&gt;&lt;A rel="nofollow" target="_blank"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;None&lt;/P&gt;&lt;P&gt;&lt;A rel="nofollow" target="_blank"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Description&lt;/P&gt;&lt;P&gt;&lt;A rel="nofollow" target="_blank"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This directive forces the next instruction to a boundary that is a multiple of &amp;lt;n&amp;gt;, &lt;FONT color="#339966"&gt;&lt;STRONG&gt;relative to the start of the section&lt;/STRONG&gt;&lt;/FONT&gt;. The value of &amp;lt;n&amp;gt; must be a positive number between 1 and 32767. The &lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;ALIGN&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN&gt;directive can force &lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;align&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;ment to any size. The filling bytes inserted for &lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;align&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;ment purpose are initialized with&lt;/SPAN&gt; `\0'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;***************************************************************************************&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I highlighted the part that ALIGN is relative to the start of the section, say it is not aligning relative to the final address.&lt;/P&gt;&lt;P&gt;As the two ALIGN's are both at section offset 0, the alignment is trivially satisfied and nothing gets inserted.&lt;/P&gt;&lt;P&gt;You may want to look into the linker manual, the prm file supports a syntax to align all the section start addresses.&lt;/P&gt;&lt;P&gt;If you just have 2 arrays of known sizes it might also be simpler to allocate them into a specific placement in the prm file instead of allocating them together with the rest of the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 13:44:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/ALIGN-directive-does-not-ALIGN-code-as-expected/m-p/156417#M2408</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2010-10-20T13:44:26Z</dc:date>
    </item>
  </channel>
</rss>

