2005-05-03 06:13:18 +00:00
|
|
|
# C configuration file for llvmc
|
2004-11-23 23:33:08 +00:00
|
|
|
|
|
|
|
##########################################################
|
|
|
|
# Language definitions
|
|
|
|
##########################################################
|
|
|
|
lang.name=C
|
|
|
|
lang.opt1=-O1
|
|
|
|
lang.opt2=-O2
|
|
|
|
lang.opt3=-O3
|
|
|
|
lang.opt4=-O3
|
|
|
|
lang.opt5=-O3
|
2006-08-16 20:31:44 +00:00
|
|
|
lang.libs=%llvmgccdir%/lib %llvmgccdir%/lib %llvmgccdir%/lib/gcc/%llvmgccarch%
|
2004-11-23 23:33:08 +00:00
|
|
|
|
|
|
|
##########################################################
|
|
|
|
# Pre-processor definitions
|
|
|
|
##########################################################
|
|
|
|
|
2005-05-03 06:13:18 +00:00
|
|
|
# We use gcc as our pre-processor
|
|
|
|
preprocessor.command=gcc -E %in% -o %out% %incls% %defs%
|
|
|
|
preprocessor.required=true
|
2004-11-23 23:33:08 +00:00
|
|
|
|
|
|
|
##########################################################
|
|
|
|
# Translator definitions
|
|
|
|
##########################################################
|
|
|
|
|
2005-05-03 06:13:18 +00:00
|
|
|
# To compile C source, just use llvm-gcc's cc1
|
2005-05-19 00:52:28 +00:00
|
|
|
translator.command=%llvmcc1% -quiet %in% -o %out% \
|
2004-11-25 19:38:39 +00:00
|
|
|
%opt% %incls% %defs% %WOpts% %fOpts% %MOpts% %args% \
|
|
|
|
-D_GNU_SOURCE
|
2004-11-23 23:33:08 +00:00
|
|
|
|
2005-05-03 06:13:18 +00:00
|
|
|
# llvm-gcc does not pre-process
|
|
|
|
translator.preprocesses=false
|
2004-11-23 23:33:08 +00:00
|
|
|
|
|
|
|
# The translator is required to run.
|
|
|
|
translator.required=true
|
|
|
|
|
|
|
|
# Output of the translator is assembly
|
|
|
|
translator.output=assembly
|
|
|
|
|
|
|
|
##########################################################
|
|
|
|
# Optimizer definitions
|
|
|
|
##########################################################
|
|
|
|
|
2005-05-03 06:13:18 +00:00
|
|
|
# Use gccas to clean up the generated code
|
2005-05-19 00:52:28 +00:00
|
|
|
optimizer.command=%bindir%/gccas %in% -o %out% %args%
|
2004-11-23 23:33:08 +00:00
|
|
|
optimizer.required = true
|
|
|
|
|
2005-05-03 06:13:18 +00:00
|
|
|
# gccas doesn't translate
|
2004-11-23 23:33:08 +00:00
|
|
|
optimizer.translates = false
|
|
|
|
|
2005-05-03 06:13:18 +00:00
|
|
|
# gccas doesn't preprocess
|
2004-11-23 23:33:08 +00:00
|
|
|
optimizer.preprocesses=false
|
|
|
|
|
2005-05-03 06:13:18 +00:00
|
|
|
# gccas produces bytecode
|
2004-11-23 23:33:08 +00:00
|
|
|
optimizer.output = bytecode
|
|
|
|
|
|
|
|
##########################################################
|
|
|
|
# Assembler definitions
|
|
|
|
##########################################################
|
2005-05-19 00:52:28 +00:00
|
|
|
assembler.command=%bindir%/llc %in% -o %out% %target% %time% %stats%
|