Reid Spencer | b98c672 | 2004-11-23 23:33:08 +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 | lang.libs=@LLVMGCCDIR@/lib @LLVMGCCDIR@/bytecode-libs \ |
| 13 | @LLVMGCCDIR@/lib/gcc/@LLVMGCCARCH@ |
| 14 | |
| 15 | ########################################################## |
| 16 | # Pre-processor definitions |
| 17 | ########################################################## |
| 18 | |
| 19 | # Stacker doesn't have a preprocessor but the following |
| 20 | # allows the -E option to be supported |
| 21 | preprocessor.command=g++ -E %in% -o %out% %incls% %defs% |
| 22 | preprocessor.required=false |
| 23 | |
| 24 | ########################################################## |
| 25 | # Translator definitions |
| 26 | ########################################################## |
| 27 | |
| 28 | # To compile stacker source, we just run the stacker |
| 29 | # compiler with a default stack size of 2048 entries. |
| 30 | translator.command=@LLVMCC1PLUS@ -quiet %in% -o %out% \ |
| 31 | %opt% %incls% %defs% %WOpts% %fOpts% %MOpts% %args% |
| 32 | |
| 33 | # stkrc doesn't preprocess but we set this to true so |
| 34 | # that we don't run the cp command by default. |
| 35 | translator.preprocesses=true |
| 36 | |
| 37 | # The translator is required to run. |
| 38 | translator.required=true |
| 39 | |
| 40 | # stkrc doesn't handle the -On options |
| 41 | translator.output=assembly |
| 42 | |
| 43 | ########################################################## |
| 44 | # Optimizer definitions |
| 45 | ########################################################## |
| 46 | |
| 47 | # For optimization, we use the LLVM "opt" program |
| 48 | optimizer.command=@LLVM_BINDIR@/gccas %in% -o %out% %args% |
| 49 | |
| 50 | optimizer.required = true |
| 51 | |
| 52 | # opt doesn't translate |
| 53 | optimizer.translates = false |
| 54 | |
| 55 | # opt doesn't preprocess |
| 56 | optimizer.preprocesses=false |
| 57 | |
| 58 | # opt produces bytecode |
| 59 | optimizer.output = bytecode |
| 60 | |
| 61 | ########################################################## |
| 62 | # Assembler definitions |
| 63 | ########################################################## |
| 64 | assembler.command=llc %in% -o %out% %target% %time% %stats% |