GHC.Toolchain.Tools.Cc
Contents
newtype Cc Source #
Constructors
Fields
Defined in GHC.Toolchain.Tools.Cc
Methods
readsPrec :: Int -> ReadS Cc Source #
readList :: ReadS [Cc] Source #
readPrec :: ReadPrec Cc Source #
readListPrec :: ReadPrec [Cc] Source #
showsPrec :: Int -> Cc -> ShowS Source #
show :: Cc -> String Source #
showList :: [Cc] -> ShowS Source #
(==) :: Cc -> Cc -> Bool #
(/=) :: Cc -> Cc -> Bool #
compare :: Cc -> Cc -> Ordering #
(<) :: Cc -> Cc -> Bool #
(<=) :: Cc -> Cc -> Bool #
(>) :: Cc -> Cc -> Bool #
(>=) :: Cc -> Cc -> Bool #
max :: Cc -> Cc -> Cc #
min :: Cc -> Cc -> Cc #
_ccProgram :: Lens Cc Program Source #
findCc Source #
Arguments
The llvm target to use if Cc supports --target
preprocess Source #
program
preprocessed output
Preprocess the given program.
compileC Source #
cc
output path
C source
Compile a C source file to object code.
compileAsm Source #
Assembler source
Compile an assembler source file to object code.
addPlatformDepCcFlags :: ArchOS -> Cc -> M Cc Source #
Add various platform-dependent compiler flags needed by GHC. We can't do this in findCc since we need a Cc to determine the ArchOS.
findCc
Cc
ArchOS