Wei Li <weili747@xxxxxxxxx> writes: > I am using the SIMPLESCALAR framework for my research. It uses > gcc-2.7.2.3. Optimization passes in the gcc are applied in a sequence > using some pre-defined heuristic. I want to change this heuristic. Can > any one guide me where to start , which file in the gcc has the > function that controls the heuristic? gcc 2.7.2.3 is really really really old. The current version is 4.4.0. gcc 2.7.2.3 does not have the pass manager which is used in current versions of gcc. I believe that in 2.7.2.3 the order of optimizations is implemented in the function rest_of_compilation in toplev.c. Ian