{"id":23714435,"url":"https://github.com/compiler-explorer/asm-parser","last_synced_at":"2025-09-03T18:32:14.035Z","repository":{"id":40650183,"uuid":"301055978","full_name":"compiler-explorer/asm-parser","owner":"compiler-explorer","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-21T10:41:57.000Z","size":2613,"stargazers_count":29,"open_issues_count":3,"forks_count":7,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-08-29T23:46:02.436Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/compiler-explorer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-04T06:27:05.000Z","updated_at":"2025-03-22T11:55:24.000Z","dependencies_parsed_at":"2024-10-23T06:40:15.857Z","dependency_job_id":"e5993406-16e8-4748-91e9-54a12a1a27b7","html_url":"https://github.com/compiler-explorer/asm-parser","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/compiler-explorer/asm-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compiler-explorer%2Fasm-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compiler-explorer%2Fasm-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compiler-explorer%2Fasm-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compiler-explorer%2Fasm-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/compiler-explorer","download_url":"https://codeload.github.com/compiler-explorer/asm-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compiler-explorer%2Fasm-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273489909,"owners_count":25115047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-30T20:19:58.097Z","updated_at":"2025-09-03T18:32:14.015Z","avatar_url":"https://github.com/compiler-explorer.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# asm-parser\n\nCategorises and filters assembly in a way that's understood by Compiler Explorer.\n\nPossible filters as command line parameters:\n\n* `-binary` changes to the Binary mode filtering that's based on the assembly output from GNU Objdump\n* `-unused_labels` try to filter out functions that aren't strongly used\n* `-directives` filter out .directives\n* `-comment_only` filter out comments\n* `-whitespace`\n* `-library_functions` try to filter out functions that belong in other libraries that are used (filtering is based on filepaths)\n* `-dont_mask_filenames` always output the filename if available\n\nOther parameters:\n\n* `-plt` Also leaves out labels that End with `@plt` (without this, only labels that Start with `.plt` are left out)\n* `-nocompat` Leaves some experimental extra information\n* `-stdin` Reads assembly from STDIN instead of from a given file\n* `-outputtext` Instead of writing to JSON, output the filtered assemblys\n\n\n### Example usage\n\nFeeding an objdump via stdin into asm-parser:\n\n`objdump -d a.out -l --insn-width=16 | asm-parser -stdin -binary`\n\n### Building locally (debug build)\n\nYou'll need `gcc` 12 or later (or hack your settings to support your compiler).\n\n1. `setup.sh` sets up a venv, installs conan2 in it and uses that to install packages (fmt needs to be explicitly built for some reason):\n```\n$ ./setup.sh\n```\n\n2. Then you can:\n```\n$ cd build\n$ cmake .. -DCMAKE_BUILD_TYPE=Debug\n$ make -j$(nproc)\n$ make test\n```\n\n(see https://github.com/compiler-explorer/asm-parser/blob/main/build.sh for an example, you might need to configure PATH first before doing so)\n\nThe built executable should be found in the path `./build/src/asm-parser` .","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompiler-explorer%2Fasm-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompiler-explorer%2Fasm-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompiler-explorer%2Fasm-parser/lists"}