main.s Problems

50 views
Skip to first unread message

Carter Kelly

unread,
Oct 28, 2020, 4:07:04 AM10/28/20
to cmpt-295-sfu
SFU ID: 301263908
Github username: carterkelly9
Line and file: main.s, lines 42 - 115
Expected behavior: correct values saved and printed for t0, t1, t2, etc
Observed behavior: incorrect values
Question: Not sure what I am doing wrong with my mallocs / read_matrix calls in main.s. Some of the values I save are correct and some are not but the code is the same for all of them. The values seem fine until I malloc for the next pointers, where they start to get messed up. Any help is appreciated.

ali sedaghati

unread,
Oct 28, 2020, 1:20:37 PM10/28/20
to cmpt-295-sfu
You're not following the calling convention and that could be the main reason for the bug. And, put a screenshot of the command and incorrect values that you've mentioned.

Arrvindh Shriraman

unread,
Oct 28, 2020, 1:35:58 PM10/28/20
to cmpt-295-sfu
Try passing -cc 

e.g., 
 timeout 120 java -jar venus.jar ./test_files/main.s ./inputs/simple1/bin/inputs/input1.bin ./inputs/simple1/bin/m0.bin ./inputs/simple1/bin/m1.bin -ms -1 -cc

It will tell you what rules you are violating.
Reply all
Reply to author
Forward
0 new messages