This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gas: .align padding


On Fri, Oct 15, 1999 at 11:32:00AM +0000, Andrew Morton wrote:
> Good morning.  A few things:
> 
> ----
> When padding .aligns gas seems to put random gunk into the object file
> instead of nops or nulls. Can this be fixed?

Fixed? It is done on purpose. Gas chooses instructions which will as few
cycles as possible to execute which filling up all the required space.
Just measure how 7 nops execute and how fast is leal 0x0(%esi,1),%esi
(and neither change any user visible state with the exception of program
counter).

Cheers,
    Jakub
___________________________________________________________________
Jakub Jelinek | jakub@redhat.com | http://sunsite.mff.cuni.cz/~jj
Linux version 2.3.18 on a sparc64 machine (1343.49 BogoMips)
___________________________________________________________________

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]