HomeWork:
Execution Trace
CIS343
1. Download the Execution Trace
program found at:
http://faculty.kutztown.edu/rieksts/343/code/main.html
2. Unzip the program.
3. Run the executable
a. Run the following programs
fact for 5
fact for 10
sieve for 100
sieve for 200
isprime for
2, 3, 44, 97, 993, 997
b. After each run or each rename the memtrace file so that you don't
overwrite it.
4. Study the memtrace
files
a. What is similar and what is different?
b. How does fact 5 compare to fact 10?
c. How does sieve 100 compare to sieve 200?
d. How does fact compare to sieve?
e. How do both compare to isprime?
f. Can you locate evidence of subroutine calls?
g. Can you identify evidence of array processing?