<?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: !DEC$ DEFINE in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/DEC-DEFINE/m-p/858798#M68358</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/336209"&gt;Steve Lionel (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;Typically the way this is handled is to add a _DEBUG symbol name in the Project &amp;gt; Fortran &amp;gt; Preprocessor property page for the Debug configuration. You can then test this with !DEC$ IF DEFINED (_DEBUG) in your source. Read the documentation on preprocessing for more details. Note that if you use the !DEC$ style, you don't have to explicitly enable preprocessing as these are handled directly by the compiler.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;I find it real handy to set the option to compile lines of code with a D in column 1 for debug but not for release.&lt;BR /&gt;Fast and easy!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Erik</description>
    <pubDate>Tue, 29 Sep 2009 21:03:44 GMT</pubDate>
    <dc:creator>engineerik</dc:creator>
    <dc:date>2009-09-29T21:03:44Z</dc:date>
    <item>
      <title>!DEC$ DEFINE</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/DEC-DEFINE/m-p/858796#M68356</link>
      <description>I want to make som special handing for each function in debug mode.&lt;BR /&gt;So I found the !DEC$ DEFINE, &lt;BR /&gt;&lt;BR /&gt;I want to do that in each subroutine of my programm.&lt;BR /&gt;So I don't want to make a Flag like,&lt;BR /&gt;&lt;BR /&gt;if (debug) then&lt;BR /&gt; dump (variables)&lt;BR /&gt;edif&lt;BR /&gt;&lt;BR /&gt; sice I need that only in debug mode, an I want to minimize computational costs.&lt;BR /&gt;The problem of the !DEC$ DEFINE is that is only local. I want to make a global flag debug. If the flag is set, the compiler should make the code, with all debug-handling, and the simple code if I dont set this debug flag.&lt;BR /&gt;&lt;BR /&gt;I could define "!DEC$ DEFINE DEBUG" in each source file, but, then it's tedious to swicht the flag on or of for all files.&lt;BR /&gt;&lt;BR /&gt;Is there any posibility to make such a global flag, in the !DEC% DEFINE mode ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Sep 2009 16:42:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/DEC-DEFINE/m-p/858796#M68356</guid>
      <dc:creator>jaeger0</dc:creator>
      <dc:date>2009-09-29T16:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: !DEC$ DEFINE</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/DEC-DEFINE/m-p/858797#M68357</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Typically the way this is handled is to add a _DEBUG symbol name in the Project &amp;gt; Fortran &amp;gt; Preprocessor property page for the Debug configuration. You can then test this with !DEC$ IF DEFINED (_DEBUG) in your source. Read the documentation on preprocessing for more details. Note that if you use the !DEC$ style, you don't have to explicitly enable preprocessing as these are handled directly by the compiler.&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Sep 2009 17:00:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/DEC-DEFINE/m-p/858797#M68357</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-09-29T17:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: !DEC$ DEFINE</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/DEC-DEFINE/m-p/858798#M68358</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/336209"&gt;Steve Lionel (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;Typically the way this is handled is to add a _DEBUG symbol name in the Project &amp;gt; Fortran &amp;gt; Preprocessor property page for the Debug configuration. You can then test this with !DEC$ IF DEFINED (_DEBUG) in your source. Read the documentation on preprocessing for more details. Note that if you use the !DEC$ style, you don't have to explicitly enable preprocessing as these are handled directly by the compiler.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;I find it real handy to set the option to compile lines of code with a D in column 1 for debug but not for release.&lt;BR /&gt;Fast and easy!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Erik</description>
      <pubDate>Tue, 29 Sep 2009 21:03:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/DEC-DEFINE/m-p/858798#M68358</guid>
      <dc:creator>engineerik</dc:creator>
      <dc:date>2009-09-29T21:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: !DEC$ DEFINE</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/DEC-DEFINE/m-p/858799#M68359</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Well, ok, but that only works for fixed-form source.&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Sep 2009 23:32:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/DEC-DEFINE/m-p/858799#M68359</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-09-29T23:32:54Z</dc:date>
    </item>
  </channel>
</rss>

