[OLPC-devel] Flash driver status.

David Woodhouse dwmw2 at infradead.org
Mon May 29 19:05:29 EDT 2006


On Tue, 2006-05-23 at 02:18 +0100, David Woodhouse wrote:
> If we dump the whole of jffs2 into one file and build it with
> -funit-at-a-time, it shrinks by about 4KiB on PowerPC, 1.5KiB on i386.
> 
> I wonder how much there is to be gained by following that approach
> elsewhere.
> 
> It'd be a lot nicer if we could tell the compiler that everything is
> supposed to be static, instead of having to play with the source code.
> 
> http://david.woodhou.se/jffs2-all-in-one.patch 

Building with -fwhole-program achieves this. You do still need to have a
single C file which #includes the rest though -- building multiple C
files with '--combine' doesn't work.

-- 
dwmw2




More information about the Devel mailing list