[mc1322x] Building mc1322x contiki

Mariano Alvira mar at devl.org
Tue Oct 6 13:14:11 EDT 2009


On Tue, Oct 06, 2009 at 12:58:11PM -0400, Jon Smirl wrote:
> I'm trying to build the mc1322x contiki examples using
> gcc-4.3.2-glibc-2.8-binutils-2.18 from the Phytec cross tools.
> 
> My binary is ending up 550K. It is sucking in 500K of run-time
> library. Are my cross tools built wrong? Should they be built with
> exception handling turned off?

Yeah, this is glibc's fault. Something you are building is causing
some giant portion of glibc to get pulled in. I've seen this happen
with printf and I think Ian had this problem with malloc.

I've attached a simple program that Jim wrote that helps you figure
out what is pulling in what. This will at least give you a starting
point to work from and should help you narrow down the exact cause.

See the comment at the start of the file for usage.

-Mar.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: parse-map.pl
Type: text/x-perl
Size: 855 bytes
Desc: not available
URL: <http://devl.org/pipermail/mc1322x/attachments/20091006/663c1675/attachment.pl>


More information about the mc1322x mailing list