<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: What exactly are the size stats?</title>
		<link>http://forums.leaflabs.com/topic.php?id=808</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:15:57 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=808" rel="self" type="application/rss+xml" />

		<item>
			<title>mbolivar on "What exactly are the size stats?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=808#post-4856</link>
			<pubDate>Fri, 27 May 2011 17:47:44 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">4856@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;BSS:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://en.wikipedia.org/wiki/.bss&#34; rel=&#34;nofollow&#34;&#62;http://en.wikipedia.org/wiki/.bss&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;(Goes in SRAM)&#60;/p&#62;
&#60;p&#62;Data:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://en.wikipedia.org/wiki/Data_segment&#34; rel=&#34;nofollow&#34;&#62;http://en.wikipedia.org/wiki/Data_segment&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;(Goes in SRAM)&#60;/p&#62;
&#60;p&#62;Text:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://en.wikipedia.org/wiki/Code_segment&#34; rel=&#34;nofollow&#34;&#62;http://en.wikipedia.org/wiki/Code_segment&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;(Goes in Flash, so watch out, self-modifying code).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>robodude666 on "What exactly are the size stats?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=808#post-4855</link>
			<pubDate>Fri, 27 May 2011 17:35:54 +0000</pubDate>
			<dc:creator>robodude666</dc:creator>
			<guid isPermaLink="false">4855@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hey guys,&#60;/p&#62;
&#60;p&#62;I've noticed that every time to compile the size information about each object file and the elf binary are shown, for example:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Object file sizes:
   text	   data	    bss	    dec	    hex	filename
    356	      4	      0	    360	    168	build/main.o
    212	     24	      0	    236	     ec	build/usr/local/libmaple/libmaple/adc.o
    193	      8	      0	    201	     c9	build/usr/local/libmaple/libmaple/bkp.o
      0	      0	      0	      0	      0	build/usr/local/libmaple/libmaple/dac.o
    736	     68	      0	    804	    324	build/usr/local/libmaple/libmaple/dma.o
.....
  22928	   2700	    224	  25852	   64fc	(TOTALS)

Final Size:
   text	   data	    bss	    dec	    hex	filename
  13320	   1796	    416	  15532	   3cac	build/maple.elf&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;What exactly do the columns mean? I can see that dec = text+data+bss, but what do each of the columns represent? Is Text the amount of FLASH space (in bytes) that will be consumed by the program, while data is the RAM (in bytes)? What is bss in that case?&#60;/p&#62;
&#60;p&#62;As I modify my application or refactor, I'd like to keep an eye on these figures and knowing what they mean is the beginning.&#60;/p&#62;
&#60;p&#62;-robodude666
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
