-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,25 @@ | ||
# asm-parser | ||
# asm-parser | ||
|
||
Categorises and filters assembly in a way that's understood by Compiler Explorer. | ||
|
||
Possible filters as command line parameters: | ||
|
||
* `-binary` changes to the Binary mode filtering that's based on the assembly output from GNU Objdump | ||
* `-unused_labels` | ||
* `-directives` | ||
* `-comment_only` | ||
* `-whitespace` | ||
* `-library_functions` | ||
|
||
Other parameters: | ||
|
||
* `-plt` Also leaves out labels that End with `@plt` (without this, only labels that Start with `.plt` are left out) | ||
* `-nocompat` Leaves some experimental extra information and returns correct sourcefile/line information in `-binary` mode | ||
* `-stdin` Reads assembly from STDIN instead of from a given file | ||
|
||
|
||
### Example usage | ||
|
||
Feeding an objdump via stdin into asm-parser: | ||
|
||
`objdump --d a.out -l --insn-width=16 | asm-parser -stdin -binary` |