how to get instruction codes in gcc passes?

Dave Korn dave.korn.cygwin@gmail.com
Sun Jun 13 22:22:00 GMT 2010


On 13/06/2010 20:57, Ian Lance Taylor wrote:
> Ilya K <ilya2do@gmail.com> writes:
> 
>> My main aim is to build platform-dependent optimization based on the
>> minimizing of hamming distance between the instructions.
> 
> Take a look at http://code.google.com/p/mao/ .

  Or in binutils, LD's relaxation infrastructure might be usable to this end.
 But I think if you want something so platform dependent as to care about the
bitpatterns of opcodes, it almost certainly ought to live in the assembler or
linker rather than then compiler.

    cheers,
      DaveK






More information about the Gcc mailing list