{"id":20982019,"url":"https://github.com/lowrisc/abicop","last_synced_at":"2025-05-14T16:31:09.365Z","repository":{"id":83381901,"uuid":"84998437","full_name":"lowRISC/abicop","owner":"lowRISC","description":"Work towards a \"golden model\" of the RISC-V calling convention(s)","archived":false,"fork":false,"pushed_at":"2017-10-02T06:19:51.000Z","size":22,"stargazers_count":10,"open_issues_count":2,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-02T20:38:26.130Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lowRISC.png","metadata":{"files":{"readme":"README.mkd","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-03-14T21:22:21.000Z","updated_at":"2024-04-06T15:30:38.000Z","dependencies_parsed_at":"2023-03-05T07:45:35.170Z","dependency_job_id":null,"html_url":"https://github.com/lowRISC/abicop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowRISC%2Fabicop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowRISC%2Fabicop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowRISC%2Fabicop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowRISC%2Fabicop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lowRISC","download_url":"https://codeload.github.com/lowRISC/abicop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254182832,"owners_count":22028367,"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-11-19T05:42:17.837Z","updated_at":"2025-05-14T16:31:09.359Z","avatar_url":"https://github.com/lowRISC.png","language":"Python","readme":"# riscv-calling-conv-model\n\nThis project was created with the aim of providing a \"golden model\" of the\n[RISC-V calling\nconvention](https://github.com/riscv/riscv-elf-psabi-doc/blob/master/riscv-elf.md).\nIt will soon be expanded to support test case generation, to form part of a\nRISC-V ABI compliance suite.\n\n## Usage\n\nUsage example:\n\n    $ python3\n    Python 3.6.2 (default, Jul 20 2017, 03:52:27)\n    [GCC 7.1.1 20170630] on linux\n    Type \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n    \u003e\u003e\u003e from rvcc import *\n    \u003e\u003e\u003e m = RVMachine(xlen=32, flen=64)\n    \u003e\u003e\u003e m.call([\n    ... Int32,\n    ... Double,\n    ... Struct(Int8, Array(Float, 1)),\n    ... Struct(Array(Int8, 20)),\n    ... Int64,\n    ... Int64,\n    ... Int64])\n    Args:\n    arg00: SInt32\n    arg01: FP64\n    arg02: Struct([SInt8, Pad24, Array(FP32*1, s32, a32)], s64, a32)\n    arg03: Struct([Array(SInt8*20, s160, a8)], s160, a8)\n    arg04: SInt64\n    arg05: SInt64\n    arg06: SInt64\n\n    GPRs:\n    GPR[a0]: arg00\n    GPR[a1]: arg02[0:7]\n    GPR[a2]: \u0026arg03\n    GPR[a3]: arg04[0:31]\n    GPR[a4]: arg04[32:63]\n    GPR[a5]: arg05[0:31]\n    GPR[a6]: arg05[32:63]\n    GPR[a7]: arg06[0:31]\n\n    FPRs:\n    FPR[fa0]: arg01\n    FPR[fa1]: arg02[32:63]\n    FPR[fa2]: ?\n    FPR[fa3]: ?\n    FPR[fa4]: ?\n    FPR[fa5]: ?\n    FPR[fa6]: ?\n    FPR[fa7]: ?\n\n    Stack:\n    arg06[32:63] (oldsp+0)\n\n## License\n\n    Copyright (c) 2017 lowRISC CIC\n\n    Permission is hereby granted, free of charge, to any person\n    obtaining a copy of this software and associated documentation\n    files (the \"Software\"), to deal in the Software without\n    restriction, including without limitation the rights to use,\n    copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the\n    Software is furnished to do so, subject to the following\n    conditions:\n\n    The above copyright notice and this permission notice shall be\n    included in all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\n    OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n    NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n    HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n    WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n    OTHER DEALINGS IN THE SOFTWARE.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flowrisc%2Fabicop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flowrisc%2Fabicop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flowrisc%2Fabicop/lists"}