blob: f4086e26eeec463049e95a66b84f87f745fab836 [file] [log] [blame]
Reid Spencerb98c6722004-11-23 23:33:08 +00001# 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 Spencer175bf062004-12-15 01:54:37 +000012 lang.libs=@LLVMGCCDIR@/lib @LLVMGCCDIR@/lib \
Reid Spencerb98c6722004-11-23 23:33:08 +000013 @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% \
Reid Spencer07accb52004-11-25 19:38:51 +000031 %opt% %incls% %defs% %WOpts% %fOpts% %MOpts% %args% \
32 -D_GNU_SOURCE
Reid Spencerb98c6722004-11-23 23:33:08 +000033
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 # stkrc doesn't handle the -On options
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##########################################################
65 assembler.command=llc %in% -o %out% %target% %time% %stats%