assignment 3 matmul.s

105 views
Skip to first unread message

brandon

unread,
Oct 21, 2020, 8:54:38 PM10/21/20
to cmpt-295-sfu
# Question templates
SFU ID: 301358970
Github username: bla118
Github: Link to github repo (your assignment repos are private so these links are only accessible to TAs and Instructor)
Line and file: matmul.s
Expected behavior:
Observed behavior: Venus ran into a simulator error!
Attempting to access uninitialized memory between the stack and heap. Attempting to access '4' bytes at address '536871044'
Question: I tried using Venus but still need help figuring out where this happens. Thanks

Arrvindh Shriraman

unread,
Oct 21, 2020, 9:08:25 PM10/21/20
to cmpt-295-sfu
Try using the online version. It should break at the instruction where this happens with a red marker.

ali sedaghati

unread,
Oct 21, 2020, 9:14:37 PM10/21/20
to cmpt-295-sfu
And double-check how you're storing the result of the dot product. Remember that the result of the dot function is just a 4-byte value.

Arrvindh Shriraman

unread,
Oct 21, 2020, 9:19:14 PM10/21/20
to cmpt-2...@googlegroups.com
Check a6 and t4. Seems like your destination pointer could be wrong.
sw a0, 0(s3) is the instruction that crashes
s3 = a6 + t4 so either a6 is wrong or t4. It seems like t4 (its 0x1000003C) clearly a wrong offset
Reply all
Reply to author
Forward
0 new messages