x86 displacement

John S. Yates, Jr. jyates@netezza.com
Tue Nov 26 10:42:00 GMT 2002


I am optimizing a large hand crafted lexical analyze.
I was struck that in gcc 2.96 the size of x86 jump
displacements are not optimized.

 1725               .L247:
 1727               .LM167:
 1728 0778 C60720     movb $32, (%edi)
 1729 077b 47         incl %edi
 1730 077c 49         decl %ecx
 1731 077d 0F85F5FF   jne .L247  <<<<<<<<<<<<<<<<<
 1731      FFFF
 1732 0783 E902FDFF   jmp .L68
 1732      FF

Is this just a limitation of the assembler or is there
some flag I am missing?

/john
--
John S. Yates, Jr.   508 665-6897 (voice)
Netezza Inc          508 665-6811 (fax)
200 Crossing Blvd.   Framingham, MA 01701



More information about the Gcc-help mailing list