Stripping nops from an executable



I have a statically linked executable which has many useless nop's (inserted due to optimization passes).

I wish to remove all the nops from the executable with minimum effort (to make it faster). What would be the steps involved in doing this? Could somebody please help. Are there any existing tools that could be of help?

thanks in advance

regards,

Sorav

.



Relevant Pages

  • Re: ASM vs HLL : absurd war
    ... Then let me put it this way, if an optimization can be done just as ... > up to 15 NOPs perform within one CPU-cycle. ... > but it doesn't support all the useless stuff. ... Well can you show some evidence of that, ...
    (alt.lang.asm)
  • Re: [BUG] x86 kenel wont boot under Virtual PC
    ... The patch disables a optimization used in one place by commenting out some ... On 32-bit, at least the generic nops are fairly reasonable, but the ... but there are also Prescott chips ...
    (Linux-Kernel)
  • Re: ASM vs HLL : absurd war
    ... then I consider it a high level optimization. ... |> up to 15 NOPs perform within one CPU-cycle. ... | Well can you show some evidence of that, ... | so useless if you're at all interested in backwards compatibility like ...
    (alt.lang.asm)