<?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>LPCXpresso IDE中的主题 Re: SPIFI Performance hit with DEBUG vs RELEASE build settings</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/SPIFI-Performance-hit-with-DEBUG-vs-RELEASE-build-settings/m-p/572248#M20914</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Jun 2016 01:00:47 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-19T01:00:47Z</dc:date>
    <item>
      <title>SPIFI Performance hit with DEBUG vs RELEASE build settings</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SPIFI-Performance-hit-with-DEBUG-vs-RELEASE-build-settings/m-p/572245#M20911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by fweller on Tue Mar 01 12:38:37 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;QUESTION: Why would a LPCXpresso Project run substantially slower when using SPIFI and DEBUG build vs RELEASE build.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there something somewhere that is disabling instruction cache or something that is causing SPIFI to be running harder under debug?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this something that we can correct/compensate for?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We noticed with when test project is compiled for debug it seems to run EXTREMELY slow and we see a lot of SPIFI memory accesses where we would expect the code to be cached and not doing much at all.&amp;nbsp; When we build for release where optimization is set for size (the default), we see the code run nearly the anticipated speed and see NO SPIFI transactions during execution.&amp;nbsp; The code is a tight loop with only a couple function calls that are small.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Optimization difference: None for size&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Symbols difference of DEBUG and NODEBUG respectively.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Debug compile settings&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-D__MULTICORE_NONE -DDEBUG -D__CODE_RED -DCORE_M4 -D__USE_LPCOPEN -DNO_BOARD_LIB -D__LPC43XX__ -D__REDLIB__ -I"D:\proj\LPC4xxx\Code\FOXPROTestProject\lpc_chip_43xx\inc" -I"D:\proj\LPC4xxx\Code\FOXPROTestProject\lpc_chip_43xx\inc\usbd" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -specs=redlib.specs&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Release compiler settings:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-D__MULTICORE_NONE -DNDEBUG -D__CODE_RED -DCORE_M4 -D__USE_LPCOPEN -DNO_BOARD_LIB -D__LPC43XX__ -D__REDLIB__ -I"D:\proj\LPC4xxx\Code\FOXPROTestProject\lpc_chip_43xx\inc" -I"D:\proj\LPC4xxx\Code\FOXPROTestProject\lpc_chip_43xx\inc\usbd" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -specs=redlib.specs&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338218"&gt;TestProjectArchive.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:52:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SPIFI-Performance-hit-with-DEBUG-vs-RELEASE-build-settings/m-p/572245#M20911</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: SPIFI Performance hit with DEBUG vs RELEASE build settings</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SPIFI-Performance-hit-with-DEBUG-vs-RELEASE-build-settings/m-p/572246#M20912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by vtw.433e on Tue Mar 01 13:05:42 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Doesn't surprise me at all. -O0 generates very very inefficient code. It will break any caching. Take a look at what is generated to see for yourself. Take a look at the FAQs on compiler optimisation and use a higher level in your debug build, at the cost of debugability &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:52:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SPIFI-Performance-hit-with-DEBUG-vs-RELEASE-build-settings/m-p/572246#M20912</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: SPIFI Performance hit with DEBUG vs RELEASE build settings</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SPIFI-Performance-hit-with-DEBUG-vs-RELEASE-build-settings/m-p/572247#M20913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Tue Mar 01 15:41:19 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: fweller&lt;/STRONG&gt;&lt;BR /&gt;Is this something that we can correct/compensate for?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try -Og: 'optimizations that do not interfere with debugging'... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:52:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SPIFI-Performance-hit-with-DEBUG-vs-RELEASE-build-settings/m-p/572247#M20913</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: SPIFI Performance hit with DEBUG vs RELEASE build settings</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/SPIFI-Performance-hit-with-DEBUG-vs-RELEASE-build-settings/m-p/572248#M20914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2016 01:00:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/SPIFI-Performance-hit-with-DEBUG-vs-RELEASE-build-settings/m-p/572248#M20914</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-19T01:00:47Z</dc:date>
    </item>
  </channel>
</rss>

