<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Compile function needed]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=28&amp;type=atom" />
	<updated>2011-05-18T00:31:20Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=28</id>
		<entry>
			<title type="html"><![CDATA[Re: Compile function needed]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=69#p69" />
			<content type="html"><![CDATA[<p>John,</p><p>The process can be time consuming, and I think a &quot;compile&quot; option makes sense.&nbsp; However, there is the issue of Fortran module dependencies to consider.&nbsp; Due to the nature of Fortran 90 and later standards, compilation of even a single file can fail if the modules it depends on are not yet built.&nbsp; Therefore, to compile a single file, any files containing modules on which it depends must be built first.&nbsp; A single-file compile option, even just for checking syntax, would need the dependent modules compiled first.&nbsp; This requirement can be overcome with some ease, but I just wanted to explain the issue involved.&nbsp; While one might want to compile just a single file, it may be necessary to trigger recompilation of all files on which the file of interest depends.&nbsp; The process would still require a call out to the makefile.&nbsp; </p><p>I&#039;ll have a look into the best way to implement a single-file compile option.&nbsp; I agree that it would be useful.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2011-05-18T00:31:20Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=69#p69</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Compile function needed]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=68#p68" />
			<content type="html"><![CDATA[<p>We need a facility to compile just the current source file.<br />This is so that, after working on one source file, one can compile it to check for errors before&nbsp; move on to another source file that needs further work.</p><p>It is also sometimes needed when an existing program needs debugging and just one source file needs to be re-compiled with the debug option set.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </p><p>At present, when I want to compile just one source file, I have to,<br /> - make some simple change to it. like adding a space at the end of a line,<br /> - SAVE the file, and<br /> - BUILD the PROJECT.</p><p>This works because SF keeps track of which files have been edited and only re-compiles these, but it then re-links and loads the whole project, which is often unnecessary.</p><p>Hence the need for a facility to compile just one file and not rebuild the project.</p><p>Building the project should still sense which files have changed, exactly as now.<br />---<br />John</p>]]></content>
			<author>
				<name><![CDATA[JohnWasilewski]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=102</uri>
			</author>
			<updated>2011-05-17T11:30:17Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=68#p68</id>
		</entry>
</feed>
