This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: GAS : assembly optimizations ?
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Sandeep Kumar <sandeepksinha at gmail dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 16 Nov 2005 17:48:53 +1030
- Subject: Re: GAS : assembly optimizations ?
- References: <37d33d830511152222j1be1fbd2id5946fb00b4b4722@mail.gmail.com>
On Tue, Nov 15, 2005 at 10:22:07PM -0800, Sandeep Kumar wrote:
> Can anyone tell me, what optimizations
> are offered by the GNU assembler
GAS doesn't really do optimisation. At best, it tries to provide
optimal encoding of the machine instruction mnemonics given in its
source. It does provide some macro and conditional assembly facilities,
which a programmer can use to optimise source by selecting good insn
sequences.
--
Alan Modra
IBM OzLabs - Linux Technology Centre