[NSWI004] Memory detection
František Trebuňa
ferotre at gmail.com
Sun Oct 25 14:30:21 CET 2020
Look to the thread created by Jura Pelc, who tries to solve similar issues.
TL;DR use volatile keyword
On Sun, Oct 25, 2020, 12:08 Jan Fürst <jfuerst at seznam.cz> wrote:
> Hello,
> 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.
>
> 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.
>
> What am I doing wrong?
>
> Jan Fürst
> _______________________________________________
> NSWI004 mailing list
> NSWI004 at d3s.mff.cuni.cz
> https://d3s.mff.cuni.cz/mailman/listinfo/nswi004
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://d3s.mff.cuni.cz/pipermail/nswi004/attachments/20201025/df916af1/attachment.htm>
More information about the NSWI004
mailing list