Lecture 1. Debugging a program Editing, compiling, running, and debugging a C program in Linux. Understanding ASM code: where is local variable, stack change during call/ret instruction, .... Understanding the process image. 1. Example program: ex1.c #include void main(){ int x; x=30; printf("x is %d\n", x); } 2. Compiling and Running gcc –m32 -o ex1 ex1.c ./ex1 x is 30 3. ASM code objdump -D -M..