Giter Club home page Giter Club logo

ejudge-riscv-rars-support's Introduction

ejudge-riscv-rars-support

RARS RISC-V CPU Simulator support for EJudge contest management system

  1. Preparations:
    1. Download RARS Simulator .jar file and install java runtime
    2. Create rars symlink (rars-simulator) for EJudge, e.g.: sudo ln -s '/home/ejudge/rars_1.5.jar' /usr/local/bin/rars-simulator
  2. EJudge integration:
    • 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
    • Or put both *.in files in /home/ejudge/compile/scripts/in and run ejudge-configure-compilers.
  3. Update EJudge limits (because RARS is java-based simulator), e.g. for /home/judges/000001/conf/serve.cfg set:
[problem]
max_vm_size = 64G
max_stack_size = 64G
max_file_size = 64G
time_limit = 10
  1. References:
  2. Some known issues:
    • RARS executes .asm files without this extention incorrectly (e.g. no user input). Maybe they are treated as binary/compiled files?
    • No built-in way in RARS to disable 1st (copyright) & last (exit type) output lines to stdio. Workround is used for now.
    • RARS syscall for reading int's (and other numbers) - no EOF handling

ejudge-riscv-rars-support's People

Contributors

chgen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.