try -e option of gcc..may be this could help