Reid Spencer | 016e335 | 2004-08-30 06:32:24 +0000 | [diff] [blame^] | 1 | # Stacker Configuration File For llvmc |
| 2 | |
| 3 | ########################################################## |
| 4 | # Language definitions |
| 5 | ########################################################## |
| 6 | lang.name=C++ |
| 7 | lang.opt1=-O1 |
| 8 | lang.opt2=-O2 |
| 9 | lang.opt3=-O3 |
| 10 | lang.opt4=-O3 |
| 11 | lang.opt5=-O3 |
| 12 | |
| 13 | ########################################################## |
| 14 | # Pre-processor definitions |
| 15 | ########################################################## |
| 16 | |
| 17 | # Stacker doesn't have a preprocessor but the following |
| 18 | # allows the -E option to be supported |
| 19 | preprocessor.command=g++ -E %in% -o %out% %incls% %defs% |
| 20 | preprocessor.required=false |
| 21 | |
| 22 | ########################################################## |
| 23 | # Translator definitions |
| 24 | ########################################################## |
| 25 | |
| 26 | # To compile stacker source, we just run the stacker |
| 27 | # compiler with a default stack size of 2048 entries. |
| 28 | translator.command=g++ -c -x c++ %in% -o %out% %opt% %incls% %libs% %defs% |
| 29 | |
| 30 | # stkrc doesn't preprocess but we set this to true so |
| 31 | # that we don't run the cp command by default. |
| 32 | translator.preprocesses=true |
| 33 | |
| 34 | # The translator is required to run. |
| 35 | translator.required=false |
| 36 | |
| 37 | # stkrc doesn't handle the -On options |
| 38 | translator.output=bytecode |
| 39 | |
| 40 | ########################################################## |
| 41 | # Optimizer definitions |
| 42 | ########################################################## |
| 43 | |
| 44 | # For optimization, we use the LLVM "opt" program |
| 45 | optimizer.command=g++ -c -x c++ %in% -o %out% %opt% %args% %incls% %libs% %defs% |
| 46 | |
| 47 | optimizer.required = true |
| 48 | |
| 49 | # opt doesn't translate |
| 50 | optimizer.translates = true |
| 51 | |
| 52 | # opt doesn't preprocess |
| 53 | optimizer.preprocesses=true |
| 54 | |
| 55 | # opt produces bytecode |
| 56 | optimizer.output = bc |
| 57 | |
| 58 | ########################################################## |
| 59 | # Assembler definitions |
| 60 | ########################################################## |
| 61 | assembler.command=llc %in% -o %out% %target% %time% %stats% |