{"id":17843777,"url":"https://github.com/mc-cat-tty/riscv_experiments","last_synced_at":"2025-04-02T14:44:38.533Z","repository":{"id":156773094,"uuid":"489692981","full_name":"mc-cat-tty/riscv_experiments","owner":"mc-cat-tty","description":"Playing around with RISC-V assembly language.","archived":false,"fork":false,"pushed_at":"2022-07-27T11:03:16.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-08T05:43:49.429Z","etag":null,"topics":["assembly","gcc-complier","gcc-cross-compiler","qemu","qemu-riscv","riscv","riscv-emulator","riscv64"],"latest_commit_sha":null,"homepage":"","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/mc-cat-tty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"mc_cat_tty","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2022-05-07T14:16:40.000Z","updated_at":"2023-05-09T15:05:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"958905e8-5efc-4f6c-86aa-2c3d96dff2e2","html_url":"https://github.com/mc-cat-tty/riscv_experiments","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/mc-cat-tty%2Friscv_experiments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mc-cat-tty%2Friscv_experiments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mc-cat-tty%2Friscv_experiments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mc-cat-tty%2Friscv_experiments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mc-cat-tty","download_url":"https://codeload.github.com/mc-cat-tty/riscv_experiments/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246834533,"owners_count":20841565,"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":["assembly","gcc-complier","gcc-cross-compiler","qemu","qemu-riscv","riscv","riscv-emulator","riscv64"],"created_at":"2024-10-27T21:26:48.089Z","updated_at":"2025-04-02T14:44:38.501Z","avatar_url":"https://github.com/mc-cat-tty.png","language":"Assembly","funding_links":["https://ko-fi.com/mc_cat_tty"],"categories":[],"sub_categories":[],"readme":"## Setting up the environment\n\n1. Get QEMU-riscv64: `pacman -S qemu-arch-extra`\n2. Compile riscv-gnu-toolchain\n\t1. ```bash\n\t\tgit clone https://github.com/riscv-collab/riscv-gnu-toolchain \u0026\u0026 cd riscv-gnu-toolchain\n\t\t```\n\t2. Install dependencies:\n\t\t```bash\n\t\tsudo pacman -Syyu autoconf automake curl python3 libmpc mpfr gmp gawk base-devel bison flex texinfo gperf libtool patchutils bc zlib expat\n\t\t```\n\t3. ```bash\n\t\t./configure --prefix=/opt/riscv\n\t\t```\n\t4. ```bash\n\t\tmake \u0026\u0026 make linux\n\t\t```\n\t5. add `export PATH=\"/opt/riscv/bin/:$PATH\"` to the file .zshrc or .bashrc\n\n### Test your environment\nTo be sure your dev-env is ready try to compile _hello\\_world.c_ and run it through qemu-riscv64:\n```bash\nriscv64-unknown-elf-gcc -static -Wall --pedantic hello_world.c\nqemu-riscv64 a.out\n```\n\nFor more details see: [https://saveriomiroddi.github.io/Quick-riscv-cross-compilation-and-emulation/](https://saveriomiroddi.github.io/Quick-riscv-cross-compilation-and-emulation/)\n\n## Aliases\nTo set an handful of useful aliases run:\n```bash\nsource configure_env\n```\n\nNow you can run `build filename.s`, `run exec.out` and `debug exec.out`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmc-cat-tty%2Friscv_experiments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmc-cat-tty%2Friscv_experiments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmc-cat-tty%2Friscv_experiments/lists"}