| Reid Spencer | c14e53e | 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 | 
| Reid Spencer | 86960ad | 2004-12-15 01:54:37 +0000 | [diff] [blame^] | 12 | lang.libs=@LLVMGCCDIR@/lib @LLVMGCCDIR@/lib \ | 
| Reid Spencer | c14e53e | 2004-11-23 23:33:08 +0000 | [diff] [blame] | 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=@LLVMCC1@ -quiet %in% -o %out% \ | 
| Reid Spencer | d7390bb | 2004-11-25 19:38:39 +0000 | [diff] [blame] | 31 | %opt% %incls% %defs% %WOpts% %fOpts% %MOpts% %args% \ | 
|  | 32 | -D_GNU_SOURCE | 
| Reid Spencer | c14e53e | 2004-11-23 23:33:08 +0000 | [diff] [blame] | 33 |  | 
|  | 34 | # stkrc doesn't preprocess but we set this to true so | 
|  | 35 | # that we don't run the cp command by default. | 
|  | 36 | translator.preprocesses=true | 
|  | 37 |  | 
|  | 38 | # The translator is required to run. | 
|  | 39 | translator.required=true | 
|  | 40 |  | 
|  | 41 | # Output of the translator is assembly | 
|  | 42 | translator.output=assembly | 
|  | 43 |  | 
|  | 44 | ########################################################## | 
|  | 45 | # Optimizer definitions | 
|  | 46 | ########################################################## | 
|  | 47 |  | 
|  | 48 | # For optimization, we use the LLVM "opt" program | 
|  | 49 | optimizer.command=@LLVM_BINDIR@/gccas %in% -o %out% %args% | 
|  | 50 |  | 
|  | 51 | optimizer.required = true | 
|  | 52 |  | 
|  | 53 | # opt doesn't translate | 
|  | 54 | optimizer.translates = false | 
|  | 55 |  | 
|  | 56 | # opt doesn't preprocess | 
|  | 57 | optimizer.preprocesses=false | 
|  | 58 |  | 
|  | 59 | # opt produces bytecode | 
|  | 60 | optimizer.output = bytecode | 
|  | 61 |  | 
|  | 62 | ########################################################## | 
|  | 63 | # Assembler definitions | 
|  | 64 | ########################################################## | 
| Reid Spencer | d7390bb | 2004-11-25 19:38:39 +0000 | [diff] [blame] | 65 | assembler.command=@LLVM_BINDIR@/llc %in% -o %out% %target% %time% %stats% |