{"id":28240015,"url":"https://github.com/hacker-code-j/jasmin-assembly-benchmark","last_synced_at":"2025-06-11T22:32:04.799Z","repository":{"id":290742867,"uuid":"975313626","full_name":"Hacker-Code-J/Jasmin-assembly-benchmark","owner":"Hacker-Code-J","description":"Benchmark suite for assessing the performance and correctness of assembly code produced by the jasmin-lang compiler.","archived":false,"fork":false,"pushed_at":"2025-05-17T09:33:31.000Z","size":12970,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-23T14:00:20.129Z","etag":null,"topics":["jasmin-assembler","jasmin-lang","jasmin-language"],"latest_commit_sha":null,"homepage":"","language":"Assembly","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hacker-Code-J.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,"zenodo":null}},"created_at":"2025-04-30T05:50:17.000Z","updated_at":"2025-05-17T09:33:34.000Z","dependencies_parsed_at":"2025-04-30T11:32:43.063Z","dependency_job_id":null,"html_url":"https://github.com/Hacker-Code-J/Jasmin-assembly-benchmark","commit_stats":null,"previous_names":["hacker-code-j/jasmin-assembly-benchmark"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Hacker-Code-J/Jasmin-assembly-benchmark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hacker-Code-J%2FJasmin-assembly-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hacker-Code-J%2FJasmin-assembly-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hacker-Code-J%2FJasmin-assembly-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hacker-Code-J%2FJasmin-assembly-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hacker-Code-J","download_url":"https://codeload.github.com/Hacker-Code-J/Jasmin-assembly-benchmark/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hacker-Code-J%2FJasmin-assembly-benchmark/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259354872,"owners_count":22844941,"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":["jasmin-assembler","jasmin-lang","jasmin-language"],"created_at":"2025-05-19T03:12:26.345Z","updated_at":"2025-06-11T22:32:04.793Z","avatar_url":"https://github.com/Hacker-Code-J.png","language":"Assembly","readme":"# Jasmin-assembly-benchmark\n\nBenchmark suite for assessing the performance and correctness of assembly code produced by the `jasmin-lang` compiler.\n\n## Features\n\n- Categorized benchmarks under:\n  - `blockcipher/` (AES, DES…)\n  - `hash/` (SHA-256, MD5…)\n  - `mac/` (HMAC…)\n  - `streamcipher/` (RC4…)\n- Automatic discovery of `.jasm` sources\n- Two-step pipeline:\n  1. **Compile** `.jasm` → `.s` via `jasmc`  \n  2. **Assemble \u0026 link** `.s` → native executable via `gcc` or `clang`  \n- Simple `make build` / `make clean` workflow\n\n## Prerequisites\n\n- [`jasmin-lang` compiler](https://github.com/jasmin-lang/jasmin) (`jasmc` on your `$PATH`)  \n- GNU Make  \n- A native assembler \u0026 linker (e.g. `gcc` or `clang`)  \n\nVerify tools are installed:\n```sh\n$ which jasmc\n/usr/local/bin/jasmc\n\n$ which gcc\n/usr/bin/gcc\n```\n\n## Repository layout\n\n```\nJasmin-assembly-benchmark/\n├── src/\n│   ├── blockcipher/\n│   │   ├── aes.jasm\n│   │   └── des.jasm\n│   ├── hash/\n│   │   ├── sha256.jasm\n│   │   └── md5.jasm\n│   ├── mac/\n│   │   └── hmac.jasm\n│   └── streamcipher/\n│       └── rc4.jasm\n├── build/\n│   ├── blockcipher/\n│   ├── hash/\n│   ├── mac/\n│   └── streamcipher/\n├── Makefile\n└── README.md\n```\n\n- Place your `.jasm` benchmarks in `src/\u003ccategory\u003e/`.\n- Build artifacts (`.s` and executables) appear under the mirrored `build/` tree.\n\n## Usage\n\n```sh\n# Build all benchmarks:\nmake build\n\n# Clean \u0026 rebuild from scratch:\nmake rebuild\n\n# Remove all build artifacts:\nmake clean\n```\n\nAfter `make build`, each benchmark can be run directly.  \nExample:\n```sh\n# Run the AES block‐cipher benchmark\n./build/blockcipher/aes\n\n# Run the SHA-256 hash benchmark\n./build/hash/sha256\n```\n\n## Adding new benchmarks\n\n1. Drop your new `foo.jasm` into the appropriate `src/\u003ccategory\u003e/` folder.  \n2. Ensure it defines a `_start` or `main` entry point as per `jasmin-lang` conventions.  \n3. Re-run `make build` — your new benchmark will be compiled \u0026 linked automatically.\n\n## License\n\nDistributed under the MIT License. See [LICENSE](LICENSE) for details.\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhacker-code-j%2Fjasmin-assembly-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhacker-code-j%2Fjasmin-assembly-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhacker-code-j%2Fjasmin-assembly-benchmark/lists"}