-mflat and -fomit-frame-pointer might be of interest to you. Beyond those the documentation at http://egcs.cygnus.com/onlinedocs/gcc_toc.html covers the things that will need changing to do this.