3 ms·
Has there ever been a program (not including any so-called "optimised assembler") that accepts handwritten asm on stdin and sends "optimised" asm to stdout?
by textmode 8y ago
Has there ever been a program (not including any so-called "optimised assembler") that accepts handwritten asm on stdin and sends "optimised" asm to stdout?
optasm <1.asm >2.asm
diff -U0 1.asm 2.asm|less
The person writing the handwritten asm can then look at the suggested "optimisations" and can learn from/evaluate them.
Looking at x86 asm source code, I have always been amazed at the relatively small number of commonly used instructions versus the large number of available instructions that are listed in the manuals. As someone learning asm, how would I ever be introduced to apropos usage of these uncommon instructions absent real-world examples?