<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Extensions | Learn C Games Programming Blog</title>
	<atom:link href="https://learncgames.com/category/extensions/feed/" rel="self" type="application/rss+xml" />
	<link>https://learncgames.com</link>
	<description>A blog about C, programming games and my ebook(s).</description>
	<lastBuildDate>Fri, 03 Apr 2020 15:10:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://learncgames.com/wp-content/uploads/2020/03/cropped-favicon-32x32.png</url>
	<title>Extensions | Learn C Games Programming Blog</title>
	<link>https://learncgames.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">181446779</site>	<item>
		<title>How to view disassembled C/C++ code in Visual Studio Code</title>
		<link>https://learncgames.com/how-to-view-disassembled-c-c-code-in-visual-studio-code/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-view-disassembled-c-c-code-in-visual-studio-code</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Wed, 08 Apr 2020 23:00:43 +0000</pubDate>
				<category><![CDATA[Extensions]]></category>
		<category><![CDATA[Source code]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Visual Studio Code]]></category>
		<category><![CDATA[disassembly]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=327</guid>

					<description><![CDATA[<p>There are four steps to do this. That&#8217;s assuming that you have successfully compiled your C or C++ program and have the source file handy. Install Disassembly Explorer extension into Visual Studio Code. Set a configuration setting. Run a single line command in terminal. Select a command in the Visual Studio Code command palette. Install [&#8230;]</p>
The post <a href="https://learncgames.com/how-to-view-disassembled-c-c-code-in-visual-studio-code/">How to view disassembled C/C++ code in Visual Studio Code</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" class="size-full wp-image-332 alignleft" src="https://learncgames.com/wp-content/uploads/2020/03/disassembledCode.png" alt="Disassembled C source code" width="600" height="179" srcset="https://learncgames.com/wp-content/uploads/2020/03/disassembledCode.png 600w, https://learncgames.com/wp-content/uploads/2020/03/disassembledCode-300x90.png 300w" sizes="(max-width: 600px) 100vw, 600px" />There are four steps to do this. That&#8217;s assuming that you have successfully compiled your C or C++ program and have the source file handy.</p>
<ol>
<li>Install Disassembly Explorer extension into Visual Studio Code.</li>
<li>Set a configuration setting.</li>
<li>Run a single line command in terminal.</li>
<li>Select a command in the Visual Studio Code command palette.</li>
</ol>
<h3>Install Disassembly Explorer.</h3>
<p>In Visual Studio Code just switch to the extension tab and search for Dissassembly Explorer and click the install button.</p>
<p><img decoding="async" class="size-medium wp-image-328 alignleft" src="https://learncgames.com/wp-content/uploads/2020/03/disassemblyexplorer-300x79.png" alt="Disassembly Explorer" width="300" height="79" srcset="https://learncgames.com/wp-content/uploads/2020/03/disassemblyexplorer-300x79.png 300w, https://learncgames.com/wp-content/uploads/2020/03/disassemblyexplorer.png 588w" sizes="(max-width: 300px) 100vw, 300px" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h3>Next is configuration</h3>
<p>View the installed extensions and click the cogwheel for Disassembly Explorer then click <em>Extension Settings</em> at the bottom of the popup menu. A Settings tab will open, click <em>Edit in settings.json</em>.</p>
<p>You should see a few settings but only this one matters: <strong>&#8220;compilerexplorer.compilationDirectory&#8221;: &#8220;${workspaceFolder}/.vscode&#8221; . </strong>That path is where the compile etc. .json files are located.</p>
<h3>Now open a terminal</h3>
<p>I&#8217;ve assumed that you are running on Linux or Mac. If you are on Windows, you can also use Visual Studio Community Edition which includes disassembly features and why I&#8217;m not mentioning it here.</p>
<p>In the folder with your source files issue this command in the terminal.</p>
<pre><code class="language-bash" data-line="">clang -g -o asteroids.S -S asteroids.c</code></pre>
<p>If OTOH you are running gcc then just substitute gcc for clang.</p>
<p>Finally, back in Visual Studio Code select your source file as the open tab then press F1 and in the menu that appears type in enough of <strong>Disassembly Explorer: Show</strong> until you can select it and a second tab should open with the disassembly. Click on a function in the source tab and it will jump to the correct place in the disassembled code.</p>The post <a href="https://learncgames.com/how-to-view-disassembled-c-c-code-in-visual-studio-code/">How to view disassembled C/C++ code in Visual Studio Code</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">327</post-id>	</item>
	</channel>
</rss>
