<?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>Classic/Legacy CodeWarrior中的主题 add timestamp during compile</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/add-timestamp-during-compile/m-p/205756#M5719</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a way to include a timestamp in the code that I compile. &amp;nbsp;I want to assign an address in flash of say 4 bytes and put the date and time of compile into it automatically.(perhaps UTC time or some other format). &amp;nbsp;This way when I am looking at the firmware on a chip later I can determine when the code was compiled that is currently loaded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS, I am programming a 9s08SH32 part if that makes any difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 May 2011 01:23:27 GMT</pubDate>
    <dc:creator>jfannon</dc:creator>
    <dc:date>2011-05-13T01:23:27Z</dc:date>
    <item>
      <title>add timestamp during compile</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/add-timestamp-during-compile/m-p/205756#M5719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a way to include a timestamp in the code that I compile. &amp;nbsp;I want to assign an address in flash of say 4 bytes and put the date and time of compile into it automatically.(perhaps UTC time or some other format). &amp;nbsp;This way when I am looking at the firmware on a chip later I can determine when the code was compiled that is currently loaded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS, I am programming a 9s08SH32 part if that makes any difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 01:23:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/add-timestamp-during-compile/m-p/205756#M5719</guid>
      <dc:creator>jfannon</dc:creator>
      <dc:date>2011-05-13T01:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: add timestamp during compile</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/add-timestamp-during-compile/m-p/205757#M5720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are&amp;nbsp;predefined ﻿﻿﻿﻿﻿﻿﻿﻿standard C string constants __DATE__ and __TIME__. Usage is like&lt;/P&gt;&lt;P&gt;const char date[] = __DATE__;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately you can't change format of these or encode them to long int or other more compact form.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 02:55:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/add-timestamp-during-compile/m-p/205757#M5720</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2011-05-13T02:55:33Z</dc:date>
    </item>
  </channel>
</rss>

