{"id":35216334,"url":"https://github.com/zaneham/conway","last_synced_at":"2026-05-21T03:03:04.321Z","repository":{"id":330246779,"uuid":"1121641941","full_name":"Zaneham/Conway","owner":"Zaneham","description":"A RICS-V and X86 binary translator","archived":false,"fork":false,"pushed_at":"2026-02-26T05:40:37.000Z","size":524,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-26T10:15:38.827Z","etag":null,"topics":["assembly","emulator","low-level","rics","ricsv","x86"],"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/Zaneham.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":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-23T10:08:36.000Z","updated_at":"2026-02-26T05:40:42.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Zaneham/Conway","commit_stats":null,"previous_names":["zaneham/conway"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Zaneham/Conway","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zaneham%2FConway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zaneham%2FConway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zaneham%2FConway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zaneham%2FConway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zaneham","download_url":"https://codeload.github.com/Zaneham/Conway/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zaneham%2FConway/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33286679,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T02:57:32.698Z","status":"ssl_error","status_checked_at":"2026-05-21T02:57:31.990Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","emulator","low-level","rics","ricsv","x86"],"created_at":"2025-12-29T22:24:10.364Z","updated_at":"2026-05-21T03:03:04.316Z","avatar_url":"https://github.com/Zaneham.png","language":"Assembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Conway\n\nA RISC-V to x86-64 dynamic binary translator written in pure x86-64 assembly.\n\nNamed after Lynn Conway, who invented dynamic instruction scheduling. This project makes instructions flow between architectures. She figured out how to make them flow efficiently in the first place.\n\n## What It Is\n\nConway loads a RISC-V ELF binary, translates it to native x86-64 machine code at runtime, and executes it. No interpreter loop. No LLVM. No compiler in the middle making decisions you didn't ask for.\n\nIt passes 100% of the official RISC-V compliance tests. Which is quite nifty really.\n\n## What It Runs On\n\nx86-64. Windows (MinGW) and Linux. The translator core is NASM assembly. The CLI and file I/O are a thin C wrapper that calls into the assembly.\n\n## Compliance\n\n| Extension | Tests | Status |\n|-----------|-------|--------|\n| **I** Base Integer | 50 | ALL PASS |\n| **M** Multiply/Divide | 13 | ALL PASS |\n| **A** Atomics | 18 | ALL PASS |\n| **C** Compressed | 33 | ALL PASS |\n| **F** Single-precision FP | 18 | ALL PASS |\n| **D** Double-precision FP | 27 | ALL PASS |\n| **TOTAL** | **159** | **100%** |\n\n## Building\n\nYou need NASM and GCC (MinGW on Windows).\n\n**Linux:**\n\n```\nmake clean \u0026\u0026 make\n```\n\n**Windows:**\n\n```\nbuild-mingw.bat\n```\n\n## Usage\n\n```\nconway [options] \u003criscv_elf\u003e\n```\n\nOptions:\n\n| Flag | What |\n|------|------|\n| `-h`, `--help` | Show usage |\n| `-v`, `--verbose` | Print loader and execution details |\n| `--max-blocks N` | Stop after translating N blocks (0 = unlimited) |\n| `--dump-regs` | Print register file after execution |\n\nExample:\n\n```\n$ ./bin/conway examples/hello.elf\nConway - RISC-V to x86-64 Binary Translator\nHello from RISC-V!\n```\n\nThat's a real RISC-V ELF binary running on your x86-64 machine.\n\n## Cross-Compiling RISC-V Binaries\n\n```bash\ndocker run --rm -v \"$(pwd):/src\" dockcross/linux-riscv64 bash -c \\\n  \"riscv64-unknown-linux-gnu-gcc -static -nostdlib -march=rv64i -mabi=lp64 \\\n   -Wl,-Ttext=0x1000,--build-id=none -o /src/output.elf /src/input.S\"\n```\n\n## Architecture\n\n```\n┌─────────────┐     ┌─────────────┐     ┌─────────────┐\n│ ELF Loader  │────\u003e│ Translator  │────\u003e│ Block Cache │\n└─────────────┘     └─────────────┘     └─────────────┘\n                          │                    │\n                          v                    v\n                   ┌─────────────┐     ┌─────────────┐\n                   │   Decode    │     │   Execute   │\n                   │   \u0026 Emit    │     │    Loop     │\n                   └─────────────┘     └─────────────┘\n```\n\n| File | What |\n|------|------|\n| `src/main.c` | C entry point. CLI, file I/O, memory allocation. |\n| `include/conway.h` | C interface to the assembly core. |\n| `src/translator.asm` | The whole shebang. Decode, emit, block cache, execution loop. |\n| `src/elf_loader.asm` | Parses ELF64 headers, loads PT_LOAD segments into guest memory. |\n| `src/platform_win.asm` | Windows syscall layer (WriteFile, VirtualProtect, etc). |\n| `src/platform_linux.asm` | Linux syscall layer (write, mprotect, etc). |\n\n## Supported Instructions\n\nRV64IMAFDC. The full general-purpose set. See `include/rv_opcodes.inc` for the complete list.\n\n## Register Mapping\n\n| RISC-V | x86-64 | Notes |\n|--------|--------|-------|\n| x0 | - | Hardwired zero |\n| x1-x7 | r8-r14 | Direct mapping |\n| x8-x31 | Memory | Spill area |\n| pc | r15 | Programme counter |\n\n## Roadmap\n\nSee [ROADMAP.md](ROADMAP.md).\n\n## License\n\nApache 2.0. See [LICENSE](LICENSE) for the full text.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaneham%2Fconway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaneham%2Fconway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaneham%2Fconway/lists"}