4 ms·
Great. don't worry about interrupt bugs. My course is introductory, and will not touch such advanced material. > When you say "linkable library" are you lookin
by YorkshireSeason 8y ago
Great. don't worry about interrupt bugs. My course is introductory, and will not touch such advanced material.
> When you say "linkable library" are you looking for a .jar with a clear api?
Yes, a .jar with a clear API would be ideal. Maybe a method with a signature like so:
run :: String -> RISC_V_State
Here the input string is the RISC-V assembly. The type RISC_V_State
can be given in various ways. Minimally I need something along the
lines of:
- Error or successful-completion
- Content of registers (in fact content of one register should be
fine as long as that register can be used as an accumulator).
Clearly all this is available internally already, so it'd just be a
matter of creating a suitable API.
I am aware of the global state issue. I would be happy to launch a new
JVM for each test, although that is very slow (10000 tests * 200
students = 2,000,000 JVM starts). If there was a suitable "reset"
method in the exposed API that would be even better.
- thethirdone 8y agoSounds doable. If there is a issue with global state, I'll isolate it. I think an accessible API would be a good feature. If you have a github account, feel free to make an issue. If not I'll make one after I get some sleep; I've been awake for far too long.
- YorkshireSeason 8y agoGreat. I'll do this later today. Thanks.