{"id":13727714,"url":"https://github.com/felixjones/agbabi","last_synced_at":"2025-04-12T07:45:01.067Z","repository":{"id":39028561,"uuid":"329741943","full_name":"felixjones/agbabi","owner":"felixjones","description":"Provides GBA optimized functions for some common, handy operations.","archived":false,"fork":false,"pushed_at":"2024-05-10T12:16:48.000Z","size":175,"stargazers_count":77,"open_issues_count":2,"forks_count":4,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-12T07:44:56.178Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/felixjones.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2021-01-14T21:45:16.000Z","updated_at":"2025-02-08T13:57:19.000Z","dependencies_parsed_at":"2023-12-10T13:28:30.955Z","dependency_job_id":"2520ca2e-073f-48c0-921b-6f0e776a03b8","html_url":"https://github.com/felixjones/agbabi","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixjones%2Fagbabi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixjones%2Fagbabi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixjones%2Fagbabi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixjones%2Fagbabi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/felixjones","download_url":"https://codeload.github.com/felixjones/agbabi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248536977,"owners_count":21120684,"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":"2024-08-03T02:00:31.406Z","updated_at":"2025-04-12T07:45:01.047Z","avatar_url":"https://github.com/felixjones.png","language":"C","funding_links":[],"categories":["Libraries","图书馆"],"sub_categories":["Other places"],"readme":"# AGB ABI Library (agbabi)\n\n## Quick Start Guide\n\nLink with `libagbabi.a` via the normal means for your build environment (eg: `-Lagbabi` for GCC and Clang), and add the `include` directory via the normal means for your build environment (eg: `-Iagbabi/include`).\n\nLinking will implicitly activate the `armeabi` library.\n\nInclude the `armeabi.h` and `agbabi.h` headers to access the `armeabi` and `agbabi` C functions.\n\n```c\n#include \u003caeabi.h\u003e\n#include \u003cagbabi.h\u003e\n#include \u003csys/ucontext.h\u003e /* POSIX context switching */\n\nint main() {\n    \n    unsigned int a = __aeabi_uidiv(9u, 3u);\n    \n    int b = __agbabi_sqrt(25u);\n    \n    ucontext_t c;\n    getcontext(\u0026c);\n    \n    return 0;\n}\n```\n\n## API Reference\n\n- [Arm Standard Compiler Helper Function Library (aeabi)](docs/aeabi.md)\n- [AGB Support Library (agbabi)](docs/agbabi.md)\n- [POSIX Support Library](docs/posix.md)\n\n## Building\n\nRequires `gcc-arm-none-eabi` cross compiler, and either `cmake` or `meson` for configuration.\n\n### CMake 3.18+\n\nTo cross-build `libagbabi.a` in directory `build/`:\n\n```shell\ncmake -S . -B build --toolchain=cross/agb.cmake\ncmake --build build\n```\n\n### Meson 0.56.2+\n\nTo cross-build `libagbabi.a` in directory `build/`:\n\n```shell\nmeson setup build --cross-file=cross/agb.ini\nmeson compile -C build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelixjones%2Fagbabi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelixjones%2Fagbabi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelixjones%2Fagbabi/lists"}