Replies: 2 comments 2 replies
-
As described in the ecalls.md file in the docs folder, all supported syscall are described in the Trying to execute the following code in the GUI version, the input is read and in the addi x10 x0 0
addi x17 x0 63
addi x12 x0, 255
ecall
addi x17 x0 10
ecall If you want to observe the value arriving at void putStdInData(const QByteArray &data) {
qDebug() << data;
...
} Then build your local version of Ripes as described here. |
Beta Was this translation helpful? Give feedback.
-
@federicovilla55 Thanks for the answer! Regarding qDebug(), I still haven't been able to handle it correctly. I'm inside my fork, I used qDebug() as you mentioned, I committed and did docker build again and finally I ran it with docker run, but without success when using the console, as shown below: So, since it didn't work, does that mean I can't use docker to use the console and I have to build Ripes manually? (I would very much like to stay with docker) Note: It is worth mentioning that I am only using it in CLI mode, as I need to connect with a type of Online Judge |
Beta Was this translation helpful? Give feedback.
-
Dear @mortbopet and developers,
I have some doubts at different points, I will describe them here.
Firstly, I used Docker to try to explore the project, so far so good.
I basically changed the endpoint to use CLI mode
But I went looking for read syscall and couldn't find it. (I used the value 5/63 to read integers, but it doesn't work)
This was the first point that raised my doubts, is there somewhere with this documented or is there documentation for developers to fully understand the project?
Finally, my last question is to know how to debug, as I didn't find the documentation, I wanted to debug or put some prints to see the data moving between the methods and variables.
Ripes/src/syscall/systemio.h
Line 458 in 0faf41b
For example, in the line above I would like to see the value that is arriving at &data through a print or debug, can you help me at this point too?
Thank you very much in advance.
Beta Was this translation helpful? Give feedback.
All reactions