I am using the Vlagrind lackey tool to examine the full memory reference string
ID: 657218 • Letter: I
Question
I am using the Vlagrind lackey tool to examine the full memory reference string of a running computer program and wonder what the difference between a "store" and a "modify" might be - and do these differences reflect a real difference in category of memory manipulation, or are they merely a convenience for the user/programmer of Valgrind's lackey tool?
The comments on the lk_main.c source code give these examples of (a) A store:
movl %eax, (%ebx)
And (b) a modify
incl (%ecx)
I appreciate this is a question about a specific piece of software, but what I really want to know is if it is valid to consider stores and modifies as, in effect "stores" - as much texts on memory seem to regard the two basic operations as load (read) and store (write).
Explanation / Answer
This sounds like a question about the terminology that Valgrind happens to use, more so than a question about fundamental aspects of computer science. I suggest you ask on a Valgrind support forum if you want an authoritative answer.
Based on your examples, it looks like the most likely answer is that the Valgrind folks are using the word "store" to mean "an operation that writes to memory, overwriting in a previous value with a new value that does not depend upon its previous value" while they mean "modify" to mean "an operation that writes to memory, updating its value to a new value that may depend upon the value previously stored in that location". Only Valgrind folks can confirm authoritatively whether this is actually what they mean.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.