<?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>8-bit MicrocontrollersのトピックRe: Compiler Option</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Compiler-Option/m-p/286682#M20392</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;The PRM file, which identifies the addresses of the various section names, is accessed by the linker, but not the assembler.&amp;nbsp; The assembler will normally assume that all variables have 16 bit addresses, by default.&amp;nbsp; Any variables to be specifically located within zero page RAM can be identified with the assembler directive XREFB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jul 2013 05:21:15 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2013-07-25T05:21:15Z</dc:date>
    <item>
      <title>Compiler Option</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Compiler-Option/m-p/286680#M20390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a basic question about the compiler options&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in my PRM file I have the following configuration about the Z_RAM direct access&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Z_RAM&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; = READ_WRITE&amp;nbsp;&amp;nbsp; 0x0080 TO 0x00FF;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DEFAULT_RAM,&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; INTO&amp;nbsp; Z_RAM;&lt;/P&gt;&lt;P&gt;etc..&lt;/P&gt;&lt;P&gt;_DATA_ZEROPAGE,&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; /* zero page variables */&lt;/P&gt;&lt;P&gt;MY_ZEROPAGE&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; INTO&amp;nbsp; Z_RAM;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in main.asm&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MY_ZEROPAGE:&amp;nbsp; section&lt;/P&gt;&lt;P&gt;abcd:&amp;nbsp; DS.B&amp;nbsp; 1&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;main: section &lt;/P&gt;&lt;P&gt;LDA abcd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; 3 bytes used in memory (2 bytes for the addresses)&lt;/P&gt;&lt;P&gt;LDA abcd.B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;2 bytes used in memory (1 bytes for the addresses)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How is it possible to configure the compiler to do the difference between a direct address and a long address by itself to optimize the code size ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 14:03:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Compiler-Option/m-p/286680#M20390</guid>
      <dc:creator>Brax02</dc:creator>
      <dc:date>2013-07-23T14:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler Option</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Compiler-Option/m-p/286681#M20391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you please upload your demo project to showcase us your issue? thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 09:22:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Compiler-Option/m-p/286681#M20391</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2013-07-24T09:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler Option</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Compiler-Option/m-p/286682#M20392</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;The PRM file, which identifies the addresses of the various section names, is accessed by the linker, but not the assembler.&amp;nbsp; The assembler will normally assume that all variables have 16 bit addresses, by default.&amp;nbsp; Any variables to be specifically located within zero page RAM can be identified with the assembler directive XREFB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 05:21:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Compiler-Option/m-p/286682#M20392</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2013-07-25T05:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler Option</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Compiler-Option/m-p/286683#M20393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok thanks a lot !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 08:46:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Compiler-Option/m-p/286683#M20393</guid>
      <dc:creator>Brax02</dc:creator>
      <dc:date>2013-07-25T08:46:04Z</dc:date>
    </item>
  </channel>
</rss>

