{"id":15394261,"url":"https://github.com/xyproto/cdetect","last_synced_at":"2025-04-15T23:53:24.843Z","repository":{"id":57520016,"uuid":"110549804","full_name":"xyproto/cdetect","owner":"xyproto","description":":microscope: Detect which compiler and compiler version a Linux executable (in the ELF format) was compiled with","archived":false,"fork":false,"pushed_at":"2024-01-15T11:25:15.000Z","size":1971,"stargazers_count":29,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-29T03:03:53.823Z","etag":null,"topics":["clang","detect","elf","elf-format","fpc","gcc","ghc","go","linux","ocaml","rust","tcc","utility"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xyproto.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":"2017-11-13T13:11:04.000Z","updated_at":"2025-02-02T23:04:07.000Z","dependencies_parsed_at":"2024-06-20T10:19:25.534Z","dependency_job_id":"cbf7b93e-c6c8-4ecb-ab6f-7b95c79874b5","html_url":"https://github.com/xyproto/cdetect","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fcdetect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fcdetect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fcdetect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fcdetect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xyproto","download_url":"https://codeload.github.com/xyproto/cdetect/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249173061,"owners_count":21224481,"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","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":["clang","detect","elf","elf-format","fpc","gcc","ghc","go","linux","ocaml","rust","tcc","utility"],"created_at":"2024-10-01T15:22:51.549Z","updated_at":"2025-04-15T23:53:24.825Z","avatar_url":"https://github.com/xyproto.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### :microscope: CDetect\n\nUtility for figuring out which compiler and compiler version was used for compiling an executable file for Linux (in the ELF format).\n\n### Installation\n\nWith Go 1.17 or later:\n\n    go install github.com/xyproto/cdetect@latest\n\n### Example usage\n\n    $ cdetect /bin/sh\n    GCC 8.1.1\n\n    $ cdetect /usr/bin/ls\n    GCC 8.2.0\n\n    $ cdetect testdata/rust_hello\n    Rust 1.27.0-nightly\n\n    $ cdetect go\n    Go 1.11.2\n\n### Features and limitations\n\n* Supports detection of compiler name and version if an executable was built with one of these compilers:\n  * GCC\n  * Clang\n  * FPC\n  * OCaml\n  * Go\n  * TCC (compiler name only, TCC does not store the version number in the executables)\n  * Rust (for stripped executables, only the compiler name and GCC version used for linking)\n  * GHC\n* Works even with stripped executables.\n* Should work for recent versions of all of the above compilers. Executables produced with old versions of the compilers may need more testing.\n\n### Distro Packages\n\n[![Packaging status](https://repology.org/badge/vertical-allrepos/cdetect.svg)](https://repology.org/project/cdetect/versions)\n\n### Changelog\n\n#### 0.5.4 to 0.6.0\n\n* Update dependencies\n* Change the license from MIT to BSD-3\n\n#### 0.5.3 to 0.5.4\n\n* Add support for executables built with GCC 8 for 32-bit PowerPC.\n\n#### 0.5.2 to 0.5.3\n\n* Add detection of compiler name and version from executables built with `ghc` (Haskell).\n\n#### 0.5.1 to 0.5.2\n\n* Refactor out code to the [ainur](https://github.com/xyproto/ainur) module.\n* Better support for 32-bit PowerPC ELF files.\n\n#### 0.5 to 0.5.1\n\n* Fix an issue with version detection for Rust.\n\n#### 0.4 to 0.5\n\n* Add support for detecting executables compiled with Rust.\n* Will now look for the given filename in PATH, if not found.\n\n#### 0.3 to 0.4\n\n* Add support for detecting executables compiled with Clang or TCC.\n\n#### 0.2 to 0.3\n\n* Fix issue #1, detection of executables compiled with GCC on Void Linux.\n\n#### 0.1 to 0.2\n\n* Rename the utility to `cdetect`.\n\n#### 0.1\n\n* Support for detecting various compilers and compiler version numbers.\n\n### General info\n\n* Version: 0.6.0\n* Author: Alexander F. Rødseth \u0026lt;xyproto@archlinux.org\u0026gt;\n* License: BSD-3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyproto%2Fcdetect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxyproto%2Fcdetect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyproto%2Fcdetect/lists"}