<?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>blog.eddsn.com &#187; Lazarus</title>
	<atom:link href="http://blog.eddsn.com/category/programming/lazarus/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.eddsn.com</link>
	<description>The whole is more than the sum of its parts - Aristotle</description>
	<lastBuildDate>Mon, 16 Jan 2012 14:13:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Large file sizes after compiling with Lazarus</title>
		<link>http://blog.eddsn.com/2009/12/large-file-sizes-after-compiling-with-lazarus/</link>
		<comments>http://blog.eddsn.com/2009/12/large-file-sizes-after-compiling-with-lazarus/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 14:16:40 +0000</pubDate>
		<dc:creator>eddsn</dc:creator>
				<category><![CDATA[Lazarus]]></category>
		<category><![CDATA[Pascal]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.eddsn.com/?p=278</guid>
		<description><![CDATA[In the previous post when I was building the WLM Uninstaller tool, my choice was to write the app in Pascal (Lazarus). When you compile a project in Lazarus, you might end up with large executables. In my case, it was about 100 lines of code but compiled to a 12MB executable! Luckily, I found [...]]]></description>
			<content:encoded><![CDATA[<!-- Start LikeButtonSetTop --><!-- End LikeButtonSetTop --><p>In the <a href="http://blog.eddsn.com/2009/12/windows-live-messenger-uninstaller-v0-01/">previous post</a> when I was building the WLM Uninstaller tool, my choice was to write the app in Pascal (Lazarus).</p>
<p>When you compile a project in Lazarus, you might end up with large executables. In my case, it was about 100 lines of code but compiled to a 12MB executable!</p>
<p>Luckily, I found out how to significantly compress the file. In Lazarus there is a file called <strong><a href="http://blog.eddsn.com/wp-content/uploads/2009/12/strip.exe">strip.exe</a></strong> that, as the name suggests, strips the file from any unnecessary mess. The file on my installation is located in <strong>C:\lazarus\fpc\2.2.2\bin\i386-win32</strong>. You can simply use it as follows: &#8220;strip file.exe&#8221;. The file I compiled went from 12MB to 1.77MB!</p>
<p>A further decrease can be accomplished by using a packer like <a href="http://upx.sourceforge.net/">UPX</a> ( &#8220;upx -9 -o outputfile.exe inputfile.exe&#8221; ). In my case this was a further jump from 1.77MB to 668kB (5,4% of the original size!).</p>
<div class="shr-publisher-278"></div><!-- Start LikeButtonSetBottom --><!-- End LikeButtonSetBottom -->
]]></content:encoded>
			<wfw:commentRss>http://blog.eddsn.com/2009/12/large-file-sizes-after-compiling-with-lazarus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

