<?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: Stripping down libmaple</title>
		<link>http://forums.leaflabs.com/topic.php?id=1971</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:23:50 +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=1971" rel="self" type="application/rss+xml" />

		<item>
			<title>mbolivar on "Stripping down libmaple"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1971#post-11436</link>
			<pubDate>Thu, 28 Jun 2012 00:39:01 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">11436@http://forums.leaflabs.com/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;
If I create an empty main.cpp, I end up with an ELF file that is about 59K in size&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;That's also curious. When I leave main.cpp empty, I get link errors, since &#60;code&#62;main()&#60;/code&#62; (which &#60;code&#62;start_c()&#60;/code&#62; calls) is undefined. Did you really mean an empty main.cpp? Perhaps you meant a &#34;trivial&#34; main.cpp, which still does things like call &#60;code&#62;init()&#60;/code&#62;, like all of our example code does. If you call &#60;code&#62;init()&#60;/code&#62;, you have to pay for it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "Stripping down libmaple"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1971#post-11435</link>
			<pubDate>Wed, 27 Jun 2012 22:44:59 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">11435@http://forums.leaflabs.com/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;
What's all the code if I'm calling none of it?&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;Interesting question. Off the top of my head: IRQ handlers, _start, start_c(). Check the disassembly in build/maple.disas to find out more!&#60;/p&#62;
&#60;p&#62;If you're interested in stripping the library down, it sounds like you're already well along in getting the tools together to figure out what's going on inside the final binary. Try building in verbose mode and reading the binutils documentation to find out more.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>barrybrown on "Stripping down libmaple"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1971#post-11428</link>
			<pubDate>Wed, 27 Jun 2012 20:13:12 +0000</pubDate>
			<dc:creator>barrybrown</dc:creator>
			<guid isPermaLink="false">11428@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Somewhere in the docs, I thought I saw that the libraries needed to be statically compiled. I may be misremembering, however.&#60;/p&#62;
&#60;p&#62;If I create an empty main.cpp, I end up with an ELF file that is about 59K in size, of which about 46K is executable code:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
Final Size:&#60;br /&#62;
   text	   data	    bss	    dec	    hex	filename&#60;br /&#62;
  46876	   3004	   9216	  59096	   e6d8	build/maple.elf&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;What's all the code if I'm calling none of it?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ala42 on "Stripping down libmaple"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1971#post-11426</link>
			<pubDate>Wed, 27 Jun 2012 18:10:22 +0000</pubDate>
			<dc:creator>ala42</dc:creator>
			<guid isPermaLink="false">11426@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Unused libmaple code is not added to the linked binary file.&#60;br /&#62;
What makes you think your code will not fit into the available flashrom ?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>barrybrown on "Stripping down libmaple"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1971#post-11425</link>
			<pubDate>Wed, 27 Jun 2012 16:09:08 +0000</pubDate>
			<dc:creator>barrybrown</dc:creator>
			<guid isPermaLink="false">11425@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi all,&#60;/p&#62;
&#60;p&#62;New to Maple. I'm interested in using the Maple as a generic computer: just a processor, RAM, ROM, and console I/O. I've been starting out with the libmaple examples using the command-line toolchain.&#60;/p&#62;
&#60;p&#62;How much storage does libmaple use? How much will be left over for my own programs?&#60;/p&#62;
&#60;p&#62;For my experiments, I don't need most of libmaple; I just need the SerialUSB routines (or their C library equivalents, such as putchar, getchar, and printf). Where can I find information about stripping down libmaple to just the essentials?&#60;/p&#62;
&#60;p&#62;That probably leaves me with one final question: do I even need libmaple at all? Can I do console I/O through the USB serial port without it?&#60;/p&#62;
&#60;p&#62;Thanks for your help! I look forward to reporting on what I'm up to when I get it working. :)
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
