Suppose we alter do stuff to look as follows: void *do_stuff(void *arg attribute ((unused))) { int a; for (a = 0; a < 1000; a++) i++; return NULL; } Because the code is not optimized, there will be one load-increment-store sequence per iteration of the loop. B. For each number, tell whether or not our program could output it, and briefly explain why or why not. • 2000 • 1500 . 2 1

icon
Related questions
Question
Suppose we alter do stuff to look as follows:
void *do_stuff(void *arg attribute ((unused))) {
int a;
for (a = 0; a < 1000; a++)
i++;
return NULL;
}
Because the code is not optimized, there will be one load-increment-store sequence per iteration of the
loop.
B.
For each number, tell whether or not our program could output it, and briefly explain why
or why not.
• 2000
• 1500
.
2
1
Transcribed Image Text:Suppose we alter do stuff to look as follows: void *do_stuff(void *arg attribute ((unused))) { int a; for (a = 0; a < 1000; a++) i++; return NULL; } Because the code is not optimized, there will be one load-increment-store sequence per iteration of the loop. B. For each number, tell whether or not our program could output it, and briefly explain why or why not. • 2000 • 1500 . 2 1
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer