mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
e7d52b6b5c
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21667 91177308-0d34-0410-b5e6-96231b3b80d8
62 lines
1.8 KiB
Plaintext
62 lines
1.8 KiB
Plaintext
# C configuration file for llvmc
|
|
|
|
##########################################################
|
|
# Language definitions
|
|
##########################################################
|
|
lang.name=C
|
|
lang.opt1=-O1
|
|
lang.opt2=-O2
|
|
lang.opt3=-O3
|
|
lang.opt4=-O3
|
|
lang.opt5=-O3
|
|
lang.libs=@LLVMGCCDIR@/lib @LLVMGCCDIR@/lib \
|
|
@LLVMGCCDIR@/lib/gcc/@LLVMGCCARCH@
|
|
|
|
##########################################################
|
|
# Pre-processor definitions
|
|
##########################################################
|
|
|
|
# We use gcc as our pre-processor
|
|
preprocessor.command=gcc -E %in% -o %out% %incls% %defs%
|
|
preprocessor.required=true
|
|
|
|
##########################################################
|
|
# Translator definitions
|
|
##########################################################
|
|
|
|
# To compile C source, just use llvm-gcc's cc1
|
|
translator.command=@LLVMCC1@ -quiet %in% -o %out% \
|
|
%opt% %incls% %defs% %WOpts% %fOpts% %MOpts% %args% \
|
|
-D_GNU_SOURCE
|
|
|
|
# llvm-gcc does not pre-process
|
|
translator.preprocesses=false
|
|
|
|
# The translator is required to run.
|
|
translator.required=true
|
|
|
|
# Output of the translator is assembly
|
|
translator.output=assembly
|
|
|
|
##########################################################
|
|
# Optimizer definitions
|
|
##########################################################
|
|
|
|
# Use gccas to clean up the generated code
|
|
optimizer.command=@LLVM_BINDIR@/gccas %in% -o %out% %args%
|
|
optimizer.required = true
|
|
|
|
# gccas doesn't translate
|
|
optimizer.translates = false
|
|
|
|
# gccas doesn't preprocess
|
|
optimizer.preprocesses=false
|
|
|
|
# gccas produces bytecode
|
|
optimizer.output = bytecode
|
|
|
|
##########################################################
|
|
# Assembler definitions
|
|
##########################################################
|
|
assembler.command=@LLVM_BINDIR@/llc %in% -o %out% %target% %time% %stats%
|