Ankit Mahanot <ankit1986@xxxxxxxxx> writes: > Q - Where do I find implementations of O1 O2 O3 ?? In which file ?? I > looked into gcc/gcc/c-opts.c. I could find most of the options except > O1 O2 etc :( It's mostly the other way around. The gate function for each pass decides whether to run based on the optimization level. That said, several passes have associated -f options; for those passes the code in opts.c sets the appropriate flag variables for -On. Also the backends can override the choices. Ian