Try below command
gcc -m32 -S lab1-ex3.c
Then you will get lab1_ex3.s
Try to understand the contents of this .s file and the relation between .c file and .s file.