This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: to reduce footprint
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: Lin George <george4academic at yahoo dot com>
- Cc: Ian Lance Taylor <iant at google dot com>, binutils at sourceware dot org
- Date: Thu, 21 Dec 2006 10:20:43 +1100
- Subject: Re: to reduce footprint
- References: <20061220173432.47467.qmail@web32110.mail.mud.yahoo.com>
> Thanks Ian. After reading the manual for -Os, it seems that using -Os
> can both achieve the better performance and reduce the footprint. Is
> that correct?
Sometimes, yes. On some machines, there is a good performance gain if
you can reduce code size such that more of the frequently executed code
is retained in the instruction cache.
Ben