<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — optimization settings for gfortran]]></title>
	<link rel="self" href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=987&amp;type=atom" />
	<updated>2025-06-30T21:03:53Z</updated>
	<generator>PunBB</generator>
	<id>http://forums.approximatrix.com/viewtopic.php?id=987</id>
		<entry>
			<title type="html"><![CDATA[Re: optimization settings for gfortran]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=4468#p4468" />
			<content type="html"><![CDATA[<p>Thank you. Changes made; though it was already super fast.</p>]]></content>
			<author>
				<name><![CDATA[designer]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3903</uri>
			</author>
			<updated>2025-06-30T21:03:53Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=4468#p4468</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: optimization settings for gfortran]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=4467#p4467" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2025-06-30T17:57:05Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=4467#p4467</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[optimization settings for gfortran]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=4466#p4466" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[designer]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3903</uri>
			</author>
			<updated>2025-06-28T01:08:49Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=4466#p4466</id>
		</entry>
</feed>
