Lecture 6: Control Ch 3.6 of textbook (CS:APP) Sample code used in lecture to illustrate condition codes and branches The compilation of the for loop is somewhat different from what we wrote in class; the while loop is very similar. Compiles for x86-64 -------------------------------------------------- # generate loop.s gcc -O2 -S loop.c # generate loop gcc -O2 -o loop loop.c --------------------------------------------------