Replies: 4 comments
-
I think this link will help you : The functions |
Beta Was this translation helpful? Give feedback.
-
Oh, the link really helps, thank you! |
Beta Was this translation helpful? Give feedback.
-
There is nothing wrong in the skeleton. Please try to take full advantage of given skeleton code. I assume you are frustrated since you have bare understandings about LLVM APIs in OCaml. We really recommend you to first thoroughly and carefully read all the contents in README (not just for HW2, but for those will follow through the semester). Although we totally understand that one is not familiar with LLVM API in OCaml at first, rather than nitpicking on the skeleton, please get your hands dirty first and come up with more specific issues so that we could directly help. |
Beta Was this translation helpful? Give feedback.
-
Ok, I'll keep that in mind. Thank you. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. I skimmed given code a bit and noticed the code lacks something.
Do we have TODO parts that aren't marked as
failwith "Not implemented
?For example
let rec execute_block
is declared as a recursive function but it doesn't call itself.Overall code doesn't have code that fetches next instruction or destination instruction of jmp command.
Probably I think that I need to implement the fetching code in
transfer
function, but the return type of the function isMemory
which doesn't have program counter things.Am I missing something? Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions