Pass -f to stkrc to ensure the output file is always written.
[oota-llvm.git] / tools / llvmc / st
1 # Stacker Configuration File For llvmc
2
3 ##########################################################
4 # Language definitions
5 ##########################################################
6   lang.name=Stacker 
7   lang.opt1=-O1
8   lang.opt2=-O2
9   lang.opt3=-O3
10   lang.opt4=-O4
11   lang.opt5=-O5
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=cp %in% %out%
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=stkrc -s 2048 %in% -f -o %out% %opt% \
29     %time% %stats% %args%
30
31   # stkrc doesn't preprocess but we set this to true so
32   # that we don't run the cp command by default.
33   translator.preprocesses=true
34
35   # The translator is required to run.
36   translator.required=false
37
38   # stkrc doesn't handle the -On options
39   translator.output=bytecode
40
41 ##########################################################
42 # Optimizer definitions
43 ##########################################################
44   
45   # For optimization, we use the LLVM "opt" program
46   optimizer.command=stkrc -s 2048 %in% -f -o %out% %opt% \
47     %time% %stats% %args%
48
49   optimizer.required = yes
50
51   # opt doesn't translate
52   optimizer.translates = yes
53
54   # opt doesn't preprocess
55   optimizer.preprocesses=yes
56
57   # opt produces bytecode
58   optimizer.output = bc
59
60 ##########################################################
61 # Assembler definitions
62 ##########################################################
63   assembler.command=llc %in% -o %out% %target% %time% %stats%