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