This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Reason for extra NOPs instructions ???


Manoj K Sharma wrote:
Hi All,
I have recently shifted from x86 based targets to Pentium based. This
obviously resulted in shift from gcc for I80486 to gcc pentium cross
compiler.

I see some increase in my .text segment size(compare to gcc for I80486).
On investigating it, I found that it is mainly because lot of NOPs being
insterted in between. This results in bigger .text segment than what I
see in case of gcc for I80486.

Could some one please explain whats the idea behind inserting these many
NOPs ???

cache aligning jump targets -- especially in loops.


nathan
--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk


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