I\'m working on a homework problem that requires disabling compiler optimization protection for it to work. I\'m using gcc 4.4.1 on ubuntu linux, but can\'t figure out which
Try the -fno-stack-protector flag.
-fno-stack-protector