<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — optimization settings for gfortran]]></title>
		<link>http://forums.approximatrix.com/viewtopic.php?id=987</link>
		<atom:link href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=987&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in optimization settings for gfortran.]]></description>
		<lastBuildDate>Mon, 30 Jun 2025 21:03:53 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: optimization settings for gfortran]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4468#p4468</link>
			<description><![CDATA[<p>Thank you. Changes made; though it was already super fast.</p>]]></description>
			<author><![CDATA[null@example.com (designer)]]></author>
			<pubDate>Mon, 30 Jun 2025 21:03:53 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4468#p4468</guid>
		</item>
		<item>
			<title><![CDATA[Re: optimization settings for gfortran]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4467#p4467</link>
			<description><![CDATA[<p>All the settings you&#039;ve mentioned are available in the <a href="https://simplyfortran.com/docs/full/macos/options/project.html">Project Options</a> window under the <strong>Code Generation</strong> category except the link-time optimizations.&nbsp; Using <em>Extreme</em> as your optimization setting is the equivalent of <em>-O3</em>, and selecting <em>native</em> for the CPU and clicking <em>Compile strictly for selection</em> is the same as <em>-march=native</em>.&nbsp; We don&#039;t offer link-time optimization because the GNU Fortran &lt;-&gt; Apple Linker compatibility doesn&#039;t really support it on any macOS platform regardless of CPU.&nbsp; &nbsp;</p><p>And just to clarify, Fortran is <strong>always</strong> compiled to a standalone executable by Simply Fortran.&nbsp; When you run it from Simply Fortran, the input/output of the executable is piped into Simply Fortran&#039;s window.&nbsp; The executable is just sitting in your project directory (presumably, unless you&#039;ve specified some other location), and it can be run from macOS&#039;s Terminal completely separate from Simply Fortran.&nbsp; There would be no computational speed difference launching it from Simply Fortran versus launching it from the macOS Terminal.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Mon, 30 Jun 2025 17:57:05 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4467#p4467</guid>
		</item>
		<item>
			<title><![CDATA[optimization settings for gfortran]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4466#p4466</link>
			<description><![CDATA[<p>I was playing with Claude AI, comparing its Fortran 95 code to ChatGPT - to be run on the Apple M4. Claude assumed I was using Intel&#039;s gfortran and suggested three settings for optimization. Something set to -03 for maximum optimization. Something set to -flto for link-time optimization. Something set to -march=native.</p><p>I didn&#039;t see those gfortran choices in SimplyFortran&#039;s Settings so maybe they are already set for the compiler?</p><p>So far, I&#039;ve been running my routines after the Build - not compiling them to stand-alone apps. Would running a routine as a compiled stand-alone app execute way faster than running from the development environment after a Build, or just a little better (because it&#039;s the same code)?</p>]]></description>
			<author><![CDATA[null@example.com (designer)]]></author>
			<pubDate>Sat, 28 Jun 2025 01:08:49 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4466#p4466</guid>
		</item>
	</channel>
</rss>
