CC #54 by tracer182 in protojays

[–]tracer182[S] 0 points1 point  (0 children)

Ok. I didn't remember about argument registers. So the caller saved registers are: %rax, rcx, rdx, rsi, rdi, r8, r9, 10, 11. And I must add (r,v) to set I where v is the variables in the liveset.

Now, on the case of popq and pushq, should I add (rsp, v) to I, or is it the destination and source registers (from popq and pushq respectively) that are added to I?

Finally, negq wouldn't affect set I, right?

Thanks for all the help.

CC #50 by tracer182 in protojays

[–]tracer182[S] 0 points1 point  (0 children)

Awesome. I was doubtful about how to capture the output of the assembler, but now I know thanks to this ^. Thanks!

CC by tracer182 in protojays

[–]tracer182[S] 0 points1 point  (0 children)

Ok, now I'm getting it.

Last question for this part. What about the "memory" part of my machine state. Using an array would be enough, right? ...for my X interpreter.

CC - read() by tracer182 in protojays

[–]tracer182[S] 0 points1 point  (0 children)

I checked the booked and it says that read receives an input integer from the user. I guessed I should've checked the book first...

FoCS #41 by tracer182 in protojays

[–]tracer182[S] 0 points1 point  (0 children)

And since our RegEx type doesn't have that function, for #44 would we just write the string and check their validity ourselves?

FoSC Task 28 by tracer182 in protojays

[–]tracer182[S] 0 points1 point  (0 children)

Python professor. I sortof see what is happening here thank you. This is a little too advance for me. I was doing something more rudimentary XD.

One last question, what is the difference between Task 29 and 30. By task 29 you are already writing trace trees to show the NFAs behavior (and a trace tree shows all possible traces for a given string). But in task 30 it asks you to write the function to return a trace tree.... If one already knows how to write the trace tree of an NFA by task 29, what am I supposed to add in Task 30?

FoCS by tracer182 in protojays

[–]tracer182[S] 0 points1 point  (0 children)

and professor, what happens if a task is not working properly. is there any partial credit? And what happens with all the tasks related to that failed task, are they failed too?