<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — Possible to generate symbol table?]]></title>
		<link>https://forums.approximatrix.com/viewtopic.php?id=843</link>
		<atom:link href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=843&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Possible to generate symbol table?.]]></description>
		<lastBuildDate>Fri, 18 Feb 2022 02:00:12 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Possible to generate symbol table?]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3883#p3883</link>
			<description><![CDATA[<p>I misunderstood your earlier post, and I thought you were saying that it worked.&nbsp; Regardless, I did make a mistake.&nbsp; It should be:</p><div class="codebox"><pre><code>-Wl,-Map=output.map</code></pre></div><p>Notice the equals sign in the flag, which is what I had missed.</p><p>A cleaner way to inspect the executable, though, might be to use the <strong>nm</strong> command from the command line.&nbsp; If Simply Fortran installed correctly, it should be on the path.&nbsp; You can use the command:</p><div class="codebox"><pre><code>nm myprog.exe &gt; output.lst</code></pre></div><p>and it should produce a more readable output.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Fri, 18 Feb 2022 02:00:12 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3883#p3883</guid>
		</item>
		<item>
			<title><![CDATA[Re: Possible to generate symbol table?]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3882#p3882</link>
			<description><![CDATA[<p>So what iis the source of the error messages listed in my previous messages?</p>]]></description>
			<author><![CDATA[null@example.com (Lewist57)]]></author>
			<pubDate>Thu, 17 Feb 2022 23:36:16 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3882#p3882</guid>
		</item>
		<item>
			<title><![CDATA[Re: Possible to generate symbol table?]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3881#p3881</link>
			<description><![CDATA[<p>Yes, it was a lowercase &quot;L,&quot; not the number one.&nbsp; Sorry about that!</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Thu, 17 Feb 2022 22:08:07 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3881#p3881</guid>
		</item>
		<item>
			<title><![CDATA[Re: Possible to generate symbol table?]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3878#p3878</link>
			<description><![CDATA[<p>Interesting, I noted that I did not follow your flag format exactly as typed, and when I did cut and paste the flags into the linker section, and rebuilt the project, got this output:</p><p>Generating target.exe<br />c:/program files (x86)/simply fortran 3/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find : Invalid argument<br />c:/program files (x86)/simply fortran 3/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find Map,output.map: No such file or directory<br />collect2.exe: error: ld returned 1 exit status<br />Error: Last command making (target.exe) returned a bad status<br />Error: Make execution terminated</p><p>* Failed *</p><p>Just to be sure, the first flag is Wl (lower case L) and not W1 (number 1)?<br />EDIT; does not like &quot;W1&quot; so it must be &quot;Wl&quot;</p><p>Thanks</p>]]></description>
			<author><![CDATA[null@example.com (Lewist57)]]></author>
			<pubDate>Thu, 17 Feb 2022 15:46:39 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3878#p3878</guid>
		</item>
		<item>
			<title><![CDATA[Re: Possible to generate symbol table?]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3877#p3877</link>
			<description><![CDATA[<p><em>output.map</em> is indeed a text file, and you can use whatever name you want.&nbsp; It should be, by default, in the same directory as your project file.&nbsp; It would be located in the working directory where the compiler was run, so, if you&#039;re working with a project, it would be in the project&#039;s directory.</p><p>If you&#039;re using the <em>Compile and Run Current File</em> option in the Build menu, then the output file will be buried somewhere in your temporary directory.&nbsp; I don&#039;t recommend trying to locate it in that case.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Wed, 16 Feb 2022 22:11:50 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3877#p3877</guid>
		</item>
		<item>
			<title><![CDATA[Re: Possible to generate symbol table?]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3876#p3876</link>
			<description><![CDATA[<p>It accepted the linker flags with no issue. I assume that &quot;output.map&quot; is a text file with the symbol table (as well as other data), but could not find it in the folder associated with the project.&nbsp; Is it stored somewhere else?</p><p>Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (Lewist57)]]></author>
			<pubDate>Wed, 16 Feb 2022 20:13:20 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3876#p3876</guid>
		</item>
		<item>
			<title><![CDATA[Re: Possible to generate symbol table?]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3875#p3875</link>
			<description><![CDATA[<p>The closest you&#039;ll get to what you&#039;re asking is a map file generated by the linker.&nbsp; On Windows and GNU/Linux, you can add the flags:</p><div class="codebox"><pre><code>-Wl,-Map,output.map</code></pre></div><p>and on macOS:</p><div class="codebox"><pre><code>-Wl,-map,output.map</code></pre></div><p>The resulting file will list <em>every</em> routine in the executable and its address within the executable.&nbsp; It might also list global/common variables, but it certainly would not list variables that exist only in the scope of a single procedure or module.&nbsp; The flags can be added to the &quot;Linker&quot; box under the <em>Compiler Flags</em> category in <a href="http://simplyfortran.com/docs/full/macos/options/project.html">Project Options</a>.</p><p>I italicized the word &quot;every&quot; because the map will also list every internal routine that the Fortran runtime library will call.&nbsp; It can be overwhelming to see all the routines listed.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Wed, 16 Feb 2022 12:41:03 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3875#p3875</guid>
		</item>
		<item>
			<title><![CDATA[Possible to generate symbol table?]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3874#p3874</link>
			<description><![CDATA[<p>Is there an option for either the compiler, debugger or any other tool to generate a symbol table that lists all variables/constants within a project?</p>]]></description>
			<author><![CDATA[null@example.com (Lewist57)]]></author>
			<pubDate>Wed, 16 Feb 2022 00:46:59 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3874#p3874</guid>
		</item>
	</channel>
</rss>
