<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — Link time optimization]]></title>
		<link>https://forums.approximatrix.com/viewtopic.php?id=878</link>
		<atom:link href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=878&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Link time optimization.]]></description>
		<lastBuildDate>Mon, 13 Feb 2023 09:20:23 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Link time optimization]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=4063#p4063</link>
			<description><![CDATA[<p>Hi Jeff,<br />I&#039;ve given it a good work out and everything seems to be working as expected. I&#039;m getting some good results so far. Thank you very much for making it happen <img src="https://forums.approximatrix.com/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />Pete</p>]]></description>
			<author><![CDATA[null@example.com (peter.kelly)]]></author>
			<pubDate>Mon, 13 Feb 2023 09:20:23 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=4063#p4063</guid>
		</item>
		<item>
			<title><![CDATA[Re: Link time optimization]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=4061#p4061</link>
			<description><![CDATA[<p>Pete,</p><p><a href="https://simplyfortran.com/download/?platform=windows">Build 3882</a> should fix the issue as well as some pretty severe, related compiler issues introduced in 3.28.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Fri, 10 Feb 2023 21:18:31 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=4061#p4061</guid>
		</item>
		<item>
			<title><![CDATA[Re: Link time optimization]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=4060#p4060</link>
			<description><![CDATA[<p>Pete,</p><p>The issue, it turns out, is that the compiler is building a UNIX-like path to <em>lto-wrapper.exe</em>, which is used for LTO when linking the executable.&nbsp; In many cases, this path being UNIX-y (forward-slashed path separators) isn&#039;t much of a problem.&nbsp; However, once spaces are introduced into the compiler path, it uses UNIX escaping, preceding each with a backslash.&nbsp; On Windows, the operating system ends up seeing a nonsense path.&nbsp; Since the default Simply Fortran installation location is <em>C:\Program Files (x86)\</em>, it ends up breaking LTO.&nbsp; It wouldn&#039;t break if the installation path didn&#039;t include spaces, but that solution is nonsensical on Windows, especially in 2023.</p><p>I&#039;ve made changes so that the full path to <em>lto-wrapper.exe</em> is generated in a Windows-specific manner, and the compiler appears to be working now.&nbsp; We should have a new build up today.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Thu, 09 Feb 2023 13:54:20 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=4060#p4060</guid>
		</item>
		<item>
			<title><![CDATA[Re: Link time optimization]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=4059#p4059</link>
			<description><![CDATA[<p>Pete,</p><p>That&#039;s curious, it looks like something wasn&#039;t picked up during packaging or there&#039;s a hard-coded path issue.&nbsp; I&#039;ll look into it tomorrow morning, first thing.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Thu, 09 Feb 2023 01:46:12 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=4059#p4059</guid>
		</item>
		<item>
			<title><![CDATA[Re: Link time optimization]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=4058#p4058</link>
			<description><![CDATA[<p>Hi Jeff,<br />That&#039;s great, and thank you very much! However on my first try, the link failed <img src="https://forums.approximatrix.com/img/smilies/sad.png" width="15" height="15" alt="sad" />.<br /> collect2.exe: fatal error: CreateProcess: No such file or directory<br />compilation terminated.<br />Error: Last command making (target.exe) returned a bad status<br />Error: Make execution terminated</p><p>Is there a path setting or something else I should set?<br />Cheers,<br />Pete</p>]]></description>
			<author><![CDATA[null@example.com (peter.kelly)]]></author>
			<pubDate>Wed, 08 Feb 2023 23:00:01 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=4058#p4058</guid>
		</item>
		<item>
			<title><![CDATA[Re: Link time optimization]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=4057#p4057</link>
			<description><![CDATA[<p>Pete,</p><p>Version 3.28 is <a href="https://simplyfortran.com/download/?platform=windows">now available with Link Time Optimization</a> on Windows.&nbsp; You can enable the feature from Project Options under <em>Code Generation</em>:</p><p><span class="postimg"><img src="https://simplyfortran.com/docs/full/windows/options/project_options_codegen.png" alt="Code Generation Options" /></span></p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Wed, 08 Feb 2023 18:10:39 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=4057#p4057</guid>
		</item>
		<item>
			<title><![CDATA[Re: Link time optimization]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=4053#p4053</link>
			<description><![CDATA[<p>Hi Jeff,<br />That is fantastic news! I&#039;ve got my fingers and toes crossed that it works.<br />Unfortunately, when I follow good coding practice and split code up into their own modules, the speed of the code drops too. Even when compiled together, Gfortran doesn&#039;t try to optimize across the modules, and I&#039;ve found no way to force it to do so, short of lto and -Whole-program options at link time.</p>]]></description>
			<author><![CDATA[null@example.com (peter.kelly)]]></author>
			<pubDate>Tue, 07 Feb 2023 07:40:04 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=4053#p4053</guid>
		</item>
		<item>
			<title><![CDATA[Re: Link time optimization]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=4049#p4049</link>
			<description><![CDATA[<p>Pete,</p><p>It appears that the LTO plugin for our compiler wasn&#039;t being built properly because of how we link the compiler itself (the compiler is statically linked wherever possible).&nbsp; However, a rebuild that just finished looks promising.&nbsp; I&#039;ll start testing things today.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Fri, 03 Feb 2023 12:21:43 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=4049#p4049</guid>
		</item>
		<item>
			<title><![CDATA[Re: Link time optimization]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=4048#p4048</link>
			<description><![CDATA[<p>Pete,</p><p>I haven&#039;t looked into it in detail yet.&nbsp; Before the next release, we can see if a new GNU binutils will work better than previous attempts.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Mon, 30 Jan 2023 12:51:38 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=4048#p4048</guid>
		</item>
		<item>
			<title><![CDATA[Re: Link time optimization]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=4047#p4047</link>
			<description><![CDATA[<p>Hi Jeff,<br /> Any luck?<br />Pete</p>]]></description>
			<author><![CDATA[null@example.com (peter.kelly)]]></author>
			<pubDate>Fri, 27 Jan 2023 05:43:38 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=4047#p4047</guid>
		</item>
		<item>
			<title><![CDATA[Re: Link time optimization]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=4028#p4028</link>
			<description><![CDATA[<p>Pete,</p><p>I&#039;ll have to look at my notes, but there was a reason why we didn&#039;t support LTO if I&#039;m not mistaken.&nbsp; That was a long time ago, however.&nbsp; I&#039;ll see what I can do.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Wed, 14 Dec 2022 19:35:36 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=4028#p4028</guid>
		</item>
		<item>
			<title><![CDATA[Link time optimization]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=4027#p4027</link>
			<description><![CDATA[<p>Hi Jeff,<br />Would it be possible to do a SF build that supports link time optimization? I write a lot of code that could benefit from it.<br />Regards,<br />Pete</p>]]></description>
			<author><![CDATA[null@example.com (peter.kelly)]]></author>
			<pubDate>Wed, 14 Dec 2022 09:54:52 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=4027#p4027</guid>
		</item>
	</channel>
</rss>
