{"id":20912912,"url":"https://github.com/chgen/ejudge-riscv-rars-support","last_synced_at":"2025-05-13T09:31:14.987Z","repository":{"id":134711378,"uuid":"345287368","full_name":"ChGen/ejudge-riscv-rars-support","owner":"ChGen","description":"RARS RISC-V emulator support for EJudge contest management system","archived":false,"fork":false,"pushed_at":"2023-02-08T11:43:51.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T20:31:42.450Z","etag":null,"topics":["ejudge","rars","risc-v"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/ChGen.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":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-07T07:44:15.000Z","updated_at":"2023-02-08T11:49:43.000Z","dependencies_parsed_at":"2024-01-07T21:03:30.490Z","dependency_job_id":null,"html_url":"https://github.com/ChGen/ejudge-riscv-rars-support","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/ChGen%2Fejudge-riscv-rars-support","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChGen%2Fejudge-riscv-rars-support/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChGen%2Fejudge-riscv-rars-support/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChGen%2Fejudge-riscv-rars-support/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChGen","download_url":"https://codeload.github.com/ChGen/ejudge-riscv-rars-support/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253913045,"owners_count":21983246,"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":["ejudge","rars","risc-v"],"created_at":"2024-11-18T14:34:02.620Z","updated_at":"2025-05-13T09:31:14.974Z","avatar_url":"https://github.com/ChGen.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ejudge-riscv-rars-support\n\nRARS RISC-V CPU Simulator support for EJudge contest management system\n1. Preparations:\n    1. Download RARS Simulator .jar file and install java runtime\n    2. Create rars symlink (rars-simulator) for EJudge, e.g.: `sudo ln -s  '/home/ejudge/rars_1.5.jar' /usr/local/bin/rars-simulator`\n2. EJudge integration:\n    * Put both `*.in` files in `$EJUDGE_PREFIX/libexec/ejudge/lang` in (e.g. /home/ejudge/inst-ejudge/libexec/ejudge/lang/in) and run `ejudge-setup`\n    * Or put both `*.in` files in `/home/ejudge/compile/scripts/in` and run `ejudge-configure-compilers`. \n3. Update EJudge limits (because RARS is java-based simulator), e.g. for `/home/judges/000001/conf/serve.cfg` set:\n```\n[problem]\nmax_vm_size = 64G\nmax_stack_size = 64G\nmax_file_size = 64G\ntime_limit = 10\n```\n4. References:\n    * RARS RISC-V CPU Simulator: https://github.com/TheThirdOne/rars\n    * EJudge contest management system: https://github.com/blackav/ejudge\n    * EJudge wiki: https://ejudge.ru/wiki/index.php/%D0%A1%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D0%B0_ejudge\n5. Some known issues:\n    * RARS executes .asm files without this extention incorrectly (e.g. no user input). Maybe they are treated as binary/compiled files?\n    * No built-in way in RARS to disable 1st (copyright) \u0026 last (exit type) output lines to stdio. Workround is used for now.\n    * RARS syscall for reading int's (and other numbers) - no EOF handling\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchgen%2Fejudge-riscv-rars-support","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchgen%2Fejudge-riscv-rars-support","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchgen%2Fejudge-riscv-rars-support/lists"}