{"id":29275041,"url":"https://github.com/atcold/asm-apple-aarch64-playground","last_synced_at":"2025-07-05T05:40:22.659Z","repository":{"id":291609861,"uuid":"978163752","full_name":"Atcold/asm-Apple-AArch64-playground","owner":"Atcold","description":"Assembly programs for macOS on Apple Silicon","archived":false,"fork":false,"pushed_at":"2025-05-17T19:00:12.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-17T20:18:31.860Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Assembly","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Atcold.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-05-05T15:07:18.000Z","updated_at":"2025-05-17T19:00:16.000Z","dependencies_parsed_at":"2025-05-05T16:52:00.649Z","dependency_job_id":"341aa260-f1cd-47a6-929d-6e9ef8ada2b6","html_url":"https://github.com/Atcold/asm-Apple-AArch64-playground","commit_stats":null,"previous_names":["atcold/asm-apple-aarch64-playground"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Atcold/asm-Apple-AArch64-playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atcold%2Fasm-Apple-AArch64-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atcold%2Fasm-Apple-AArch64-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atcold%2Fasm-Apple-AArch64-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atcold%2Fasm-Apple-AArch64-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Atcold","download_url":"https://codeload.github.com/Atcold/asm-Apple-AArch64-playground/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atcold%2Fasm-Apple-AArch64-playground/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263692376,"owners_count":23496905,"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":[],"created_at":"2025-07-05T05:40:16.117Z","updated_at":"2025-07-05T05:40:22.649Z","avatar_url":"https://github.com/Atcold.png","language":"Assembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Apple AArch64 playground\n\nA collection of minimal assembly programs for macOS on Apple Silicon (AArch64).\nThis repository is meant for experimentation, learning, and low-level exploration of the Apple ARM64 architecture.\n\n\n## 🧰 Requirements\n\n- macOS (Apple Silicon)\n- `clang` (Apple LLVM)\n- Optional: `lldb` for debugging\n\n## 📂 Structure\n\nEach `.s` file is a standalone assembly program, assembled and linked with `clang`.\n\n```\nsrc/\n├── hello.c              # print \"Hello\" to screen\n├── mul.c                # print multiplication output to screen\n├── minimal.s            # return to the OS the multiplication of two numbers\nannotation/\n├── mul_commented.s      # clean up compiled `mul.c`\n```\n\n## 🛠️ Building\n\nYou can compile with:\n\n```sh\nclang -S hello.c\n```\n\nYou can assemble and run with:\n\n```sh\nclang -o hello hello.s\n./hello\n```\n\nYou can compile an x86_64 version (runs under Rosetta) with:\n\n```\nclang -arch x86_64 -S -o hello_x86_64.s hello.c\n```\n\nTo assemble an x86_64 version type:\n\n```sh\nclang -arch x86_64 -o hello_x86_64 hello_x86_64.s\n./hello_x86_64\n```\n\n\n## 📚 References\n\n- [Apple ARM64 ABI Documentation](https://developer.apple.com/documentation/xcode/writing-arm64-code-for-apple-platforms)\n- [ARMv8 AArch64/ARM64 Full Beginner's Assembly Tutorial](https://mariokartwii.com/armv8/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatcold%2Fasm-apple-aarch64-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatcold%2Fasm-apple-aarch64-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatcold%2Fasm-apple-aarch64-playground/lists"}