2004-08-19 04:49:47 +00:00
|
|
|
# Stacker Configuration File For llvmc
|
2004-08-15 08:16:12 +00:00
|
|
|
|
2004-08-19 04:49:47 +00:00
|
|
|
##########################################################
|
|
|
|
# Language definitions
|
|
|
|
##########################################################
|
2004-08-15 08:16:12 +00:00
|
|
|
lang.name=Stacker
|
2004-09-14 02:00:24 +00:00
|
|
|
lang.opt1=-O1
|
|
|
|
lang.opt2=-O2
|
|
|
|
lang.opt3=-O3
|
|
|
|
lang.opt4=-O4
|
|
|
|
lang.opt5=-O5
|
2004-08-19 04:49:47 +00:00
|
|
|
|
|
|
|
##########################################################
|
2004-08-15 08:16:12 +00:00
|
|
|
# Pre-processor definitions
|
2004-08-19 04:49:47 +00:00
|
|
|
##########################################################
|
|
|
|
|
|
|
|
# Stacker doesn't have a preprocessor but the following
|
|
|
|
# allows the -E option to be supported
|
2004-08-20 22:53:11 +00:00
|
|
|
preprocessor.command=cp %in% %out%
|
2004-08-19 04:49:47 +00:00
|
|
|
preprocessor.required=false
|
2004-08-15 08:16:12 +00:00
|
|
|
|
2004-08-19 04:49:47 +00:00
|
|
|
##########################################################
|
2004-08-15 08:16:12 +00:00
|
|
|
# Translator definitions
|
2004-08-19 04:49:47 +00:00
|
|
|
##########################################################
|
|
|
|
|
|
|
|
# To compile stacker source, we just run the stacker
|
|
|
|
# compiler with a default stack size of 2048 entries.
|
2004-10-28 03:57:49 +00:00
|
|
|
translator.command=stkrc -s 2048 %in% -f -o %out% %opt% \
|
|
|
|
%time% %stats% %args%
|
2004-08-19 04:49:47 +00:00
|
|
|
|
|
|
|
# stkrc doesn't preprocess but we set this to true so
|
|
|
|
# that we don't run the cp command by default.
|
|
|
|
translator.preprocesses=true
|
|
|
|
|
|
|
|
# The translator is required to run.
|
2004-09-14 02:00:24 +00:00
|
|
|
translator.required=false
|
2004-08-15 08:16:12 +00:00
|
|
|
|
2004-08-19 04:49:47 +00:00
|
|
|
# stkrc doesn't handle the -On options
|
2004-08-24 14:24:14 +00:00
|
|
|
translator.output=bytecode
|
2004-08-19 04:49:47 +00:00
|
|
|
|
|
|
|
##########################################################
|
2004-08-15 08:16:12 +00:00
|
|
|
# Optimizer definitions
|
2004-08-19 04:49:47 +00:00
|
|
|
##########################################################
|
|
|
|
|
|
|
|
# For optimization, we use the LLVM "opt" program
|
2004-10-28 03:57:49 +00:00
|
|
|
optimizer.command=stkrc -s 2048 %in% -f -o %out% %opt% \
|
|
|
|
%time% %stats% %args%
|
2004-08-19 04:49:47 +00:00
|
|
|
|
2004-09-14 02:00:24 +00:00
|
|
|
optimizer.required = yes
|
2004-08-19 04:49:47 +00:00
|
|
|
|
|
|
|
# opt doesn't translate
|
2004-09-14 02:00:24 +00:00
|
|
|
optimizer.translates = yes
|
2004-08-19 04:49:47 +00:00
|
|
|
|
|
|
|
# opt doesn't preprocess
|
2004-09-14 02:00:24 +00:00
|
|
|
optimizer.preprocesses=yes
|
2004-08-15 08:16:12 +00:00
|
|
|
|
2004-08-24 14:24:14 +00:00
|
|
|
# opt produces bytecode
|
|
|
|
optimizer.output = bc
|
2004-08-15 08:16:12 +00:00
|
|
|
|
2004-08-19 04:49:47 +00:00
|
|
|
##########################################################
|
2004-08-24 14:24:14 +00:00
|
|
|
# Assembler definitions
|
2004-08-19 04:49:47 +00:00
|
|
|
##########################################################
|
2004-08-24 14:24:14 +00:00
|
|
|
assembler.command=llc %in% -o %out% %target% %time% %stats%
|