Lecture 10: Program Optimization

vecsum -- code with vector abstraction and sum code
test   -- test code

See also code/opt on the (CS:APP) website

--------------------------------------------------
# generate vecsum.s
gcc -O2 -S vecsum.c

# generate test
gcc -O2 vecsum.c test.c -o test
--------------------------------------------------
