Sunday, February 25, 2007

Scripts for SPEC2000

I did some scripts to compile the spec programs. They are in this directory. About the new stuff, to add/remove the new analysis:

in PhiDeconstruction_Fer::insert_memory_transfer, remove the memory transfers.
in ChordalAlloc_Fernando::spill, remove the slot mapping.
in SplitPhiGroups_Fer::runOnMachineFunction, comment the body, but let return false.

To disable all the LLVM optimizations, just use this command:
llvm-gcc -Wa,-disable-opt v1.c -o executable.

The vpr benchmark (one of SPEC2000), uses X window capabilities. It produces a very cool window. How to compile an X11 application?
gcc main.c -L/usr/X11r6/lib/ -lX11

Check the script to see how to compile 175.vpr.

By the way, I would like to thank Dale J. for helping with the command line for the gap benchmark. Some of the SPEC2000 benchmarks need some special flags when being compiled. You can find those flags in the configuration files of spec2000. In my system, they are in project/fernando/spec2000/config.