<?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>Real-Time Rendering &#187; memory</title>
	<atom:link href="http://www.realtimerendering.com/blog/tag/memory/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.realtimerendering.com/blog</link>
	<description>Tracking the latest developments in interactive rendering techniques</description>
	<lastBuildDate>Sun, 12 May 2013 00:21:14 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.1</generator>
		<item>
		<title>cppcheck: free, easy, and great</title>
		<link>http://www.realtimerendering.com/blog/cppcheck-free-easy-and-great/</link>
		<comments>http://www.realtimerendering.com/blog/cppcheck-free-easy-and-great/#comments</comments>
		<pubDate>Tue, 14 Dec 2010 02:01:02 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Resources]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://www.realtimerendering.com/blog/?p=1831</guid>
		<description><![CDATA[Jari Komppa pointed this tool out to me while we were talking about my previous post on gDEBugger being free. The tool: cppcheck (download here). It&#8217;s free, it&#8217;s very simple to use, and it&#8217;s effective. Install, then run it like so: cppcheck -q theRootDirectoryOfAllCodeYouWantToCheck It will then plow through all your C++ files in this [...]]]></description>
			<content:encoded><![CDATA[<p>Jari Komppa pointed this tool out to me while we were talking about my previous post on <a href="http://www.realtimerendering.com/blog/gdebugger-is-now-free/">gDEBugger being free</a>. The tool: <a href="http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page">cppcheck</a> (download <a href="http://sourceforge.net/projects/cppcheck/">here</a>). It&#8217;s free, it&#8217;s very simple to use, and it&#8217;s effective. Install, then run it like so:</p>
<p style="padding-left: 30px;">cppcheck -q <em>theRootDirectoryOfAllCodeYouWantToCheck</em></p>
<p>It will then plow through all your C++ files in this directory on down and look for memory allocation/deallocation problems, use of unallocated array elements, and other defects. &#8220;-q&#8221; means &#8220;show me just the errors found&#8221;. It does the things your compiler should find but probably doesn&#8217;t (someone will no doubt correct me about this for gcc or somesuch, but  I use MS Visual Studio and it&#8217;s definitely true for that). For our current project it found about 15 problems, one pretty serious. For an investment of just a few minutes, this free tool caught a number of flaws that weren&#8217;t getting caught by other means. One particularly nice feature is that it tries all possible &#8220;#ifdef&#8221; paths, checking to see if any combinations cause code problems like undefined variables or similar.</p>
<p>I particularly love the fact that I didn&#8217;t have to do the usual thing of telling it all about the various include file paths and the eighteen other things I usually have to do to get similar programs working. It was so easy to run that I spent a whole two minutes more and tried it on another group&#8217;s project for which I had the code. It turned up a bunch of spots where the codebase needs some repair. Nice! About the only drawback is that the error messages are sometimes a bit terse and take some decoding. It&#8217;s open source, and they have specifically asked for help with documentation, so I expect this area will improve over time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.realtimerendering.com/blog/cppcheck-free-easy-and-great/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>