This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: creating smallest binaries
- From: Gary Thomas <gary at mlbassoc dot com>
- To: "Paul D. DeRocco" <pderocco at ix dot netcom dot com>
- Cc: eCos Discuss <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 02 Sep 2004 06:30:40 -0600
- Subject: RE: [ECOS] creating smallest binaries
- Organization: MLB Associates
- References: <NEBBKHCFDGIGIJEHDJFCOEPBLEAA.pderocco@ix.netcom.com>
On Wed, 2004-09-01 at 20:44, Paul D. DeRocco wrote:
> > From: George Pantazopoulos
> >
> > Do you have any tips for creating the smallest binaries possible? I
> > know of the gcc options "-Os" "-ffunction-sections" and
> > "-fdata-sections". Are there any others that work well?
> >
> > Any other general tips for conserving RAM? I'm using the EB40A ARM7
> > eval board with 256KB of RAM.
>
> At the risk of stating the obvious, make sure you're using Thumb mode.
Even more savings can be had by tuning your eCos configuration. eCos
is *configurable*, remember? There are a lot of things that can be
adjusted - the default configurations, while slim, have lots of room
to be trimmed, yielding a truly svelte result.
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss