<?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: Linker does not compress gaps between VLE functions like Reference Manual say in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Linker-does-not-compress-gaps-between-VLE-functions-like/m-p/2163992#M7992</link>
    <description>&lt;P&gt;... attachments ...&lt;/P&gt;</description>
    <pubDate>Fri, 05 Sep 2025 02:42:10 GMT</pubDate>
    <dc:creator>AndyMax</dc:creator>
    <dc:date>2025-09-05T02:42:10Z</dc:date>
    <item>
      <title>Linker does not compress gaps between VLE functions like Reference Manual say</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Linker-does-not-compress-gaps-between-VLE-functions-like/m-p/2163980#M7991</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;The "CodeWarrior Development Studio for&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Power Architecture® Processors Build Tools Reference " says:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;-func_align&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Specifies alignment of functions in executable code.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Syntax&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-func_align 4 | 8 | 16 | 32 | 64 | 128&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Remarks&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The default alignment is 4. However, at an optimization level 4, the alignment changes to 16. If you are using -func_align 4 (or none) and if you are compiling for VLE, then the linker will compress gaps between VLE functions:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;• if those functions are not called by a Classic PPC function&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;• the function has an alignment greater than 4.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;NOTE&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Compression of the gaps will only happen on files compiled by the CodeWarrior compiler.&lt;BR /&gt;&lt;BR /&gt;------------------------&lt;BR /&gt;&lt;BR /&gt;Questions:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;1. Isn't there a contradiction here or how should this be understood?&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;"If you are using -func_align 4 (or none) and if you are compiling for VLE, then the linker will compress gaps between VLE functions:"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;" • the function has an alignment greater than 4."&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;2. What is "Classic PPC function" ?&lt;BR /&gt;&lt;BR /&gt;3.&amp;nbsp;Why I still have gaps "00 00" between functions: I compile VLE code and "Function&amp;nbsp;alignment"(Code Generation-&amp;gt;EPPC Processor) in Codewarrior project settings is set to "4 Byte" (check attachments)?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2025 02:22:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Linker-does-not-compress-gaps-between-VLE-functions-like/m-p/2163980#M7991</guid>
      <dc:creator>AndyMax</dc:creator>
      <dc:date>2025-09-05T02:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Linker does not compress gaps between VLE functions like Reference Manual say</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Linker-does-not-compress-gaps-between-VLE-functions-like/m-p/2163992#M7992</link>
      <description>&lt;P&gt;... attachments ...&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2025 02:42:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Linker-does-not-compress-gaps-between-VLE-functions-like/m-p/2163992#M7992</guid>
      <dc:creator>AndyMax</dc:creator>
      <dc:date>2025-09-05T02:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Linker does not compress gaps between VLE functions like Reference Manual say</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Linker-does-not-compress-gaps-between-VLE-functions-like/m-p/2164073#M7993</link>
      <description>&lt;P&gt;UPD1: I created blank project and fill it with example functions, and this project no generate gaps between functions. I'm keeping play with this&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2025 05:39:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Linker-does-not-compress-gaps-between-VLE-functions-like/m-p/2164073#M7993</guid>
      <dc:creator>AndyMax</dc:creator>
      <dc:date>2025-09-05T05:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Linker does not compress gaps between VLE functions like Reference Manual say</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Linker-does-not-compress-gaps-between-VLE-functions-like/m-p/2164637#M7994</link>
      <description>&lt;P&gt;&lt;STRONG&gt;FORCEFILES { "module.o" }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For some reason it gives the linker the right to forget about his promises. If you have same issue just remove your module name from it.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Sep 2025 02:22:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Linker-does-not-compress-gaps-between-VLE-functions-like/m-p/2164637#M7994</guid>
      <dc:creator>AndyMax</dc:creator>
      <dc:date>2025-09-06T02:22:07Z</dc:date>
    </item>
  </channel>
</rss>

