<div dir="auto">Look to the thread created by Jura Pelc, who tries to solve similar issues.<div dir="auto"><br></div><div dir="auto">TL;DR use volatile keyword</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Oct 25, 2020, 12:08 Jan Fürst <<a href="mailto:jfuerst@seznam.cz">jfuerst@seznam.cz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Hello,</div><div>I'm trying to determine the amount of available memory by writing data at certain addresses and then reading it back but the program either crashes(dumps registers) or keeps on going forever in case of saving value before writing to it and then writing in back.</div><div><br></div><div>As I understood from the assignment, I shouldn't be able to read written values from memory that isn't accessible which doesn't happen in either case. </div><div><span style="background-color:transparent"><br></span></div><div><span style="background-color:transparent">What am I doing wrong?</span></div><div><br></div><div>Jan Fürst</div></div>_______________________________________________<br>
NSWI004 mailing list<br>
<a href="mailto:NSWI004@d3s.mff.cuni.cz" target="_blank" rel="noreferrer">NSWI004@d3s.mff.cuni.cz</a><br>
<a href="https://d3s.mff.cuni.cz/mailman/listinfo/nswi004" rel="noreferrer noreferrer" target="_blank">https://d3s.mff.cuni.cz/mailman/listinfo/nswi004</a><br>
</blockquote></div>