<?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: Redlib semihost Preprocessor define</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Redlib-semihost-Preprocessor-define/m-p/559030#M15280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by atomicdog on Fri Mar 02 18:01:38 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: CodeRedSupport&lt;/STRONG&gt;&lt;BR /&gt;Just to follow up on this, can you explain in more detail exactly what you are trying to achieve here?&amp;nbsp; There may well be an alternative approach.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;CodeRedSupport&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yeah, now that I've thought about it more I can just use NDEBUG since I just wanted to remove some semihosting functions from the binary with a release build.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;#if defined NDEBUG
#define debug_puts(s)
#else
#define debug_puts(s) __sys_write0(s)
#endif

int main(void) {


&amp;nbsp; debug_puts("Begin Main Loop:\n");&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:08:24 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:08:24Z</dc:date>
    <item>
      <title>Redlib semihost Preprocessor define</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Redlib-semihost-Preprocessor-define/m-p/559027#M15277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by atomicdog on Thu Mar 01 21:16:34 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a C preprocessor define that gets set when the semihost library is used?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to be able to redefine a symbol based on if the semihost library is used.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:08:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Redlib-semihost-Preprocessor-define/m-p/559027#M15277</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Redlib semihost Preprocessor define</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Redlib-semihost-Preprocessor-define/m-p/559028#M15278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Fri Mar 02 03:09:11 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: atomicdog&lt;/STRONG&gt;&lt;BR /&gt;Is there a C preprocessor define that gets set when the semihost library is used?&lt;BR /&gt;&lt;BR /&gt;I want to be able to redefine a symbol based on if the semihost library is used.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is not possible, because none/nohost/semihost is a library selection. That is, it affects the libraries that you link with - it does not affect the compilation in any way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:08:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Redlib-semihost-Preprocessor-define/m-p/559028#M15278</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Redlib semihost Preprocessor define</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Redlib-semihost-Preprocessor-define/m-p/559029#M15279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Fri Mar 02 04:10:15 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Just to follow up on this, can you explain in more detail exactly what you are trying to achieve here?&amp;nbsp; There may well be an alternative approach.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:08:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Redlib-semihost-Preprocessor-define/m-p/559029#M15279</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Redlib semihost Preprocessor define</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Redlib-semihost-Preprocessor-define/m-p/559030#M15280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by atomicdog on Fri Mar 02 18:01:38 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: CodeRedSupport&lt;/STRONG&gt;&lt;BR /&gt;Just to follow up on this, can you explain in more detail exactly what you are trying to achieve here?&amp;nbsp; There may well be an alternative approach.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;CodeRedSupport&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yeah, now that I've thought about it more I can just use NDEBUG since I just wanted to remove some semihosting functions from the binary with a release build.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;#if defined NDEBUG
#define debug_puts(s)
#else
#define debug_puts(s) __sys_write0(s)
#endif

int main(void) {


&amp;nbsp; debug_puts("Begin Main Loop:\n");&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:08:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Redlib-semihost-Preprocessor-define/m-p/559030#M15280</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:08:24Z</dc:date>
    </item>
  </channel>
</rss>

