Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data WordSize
- data Endianness
- data Target = Target {
- tgtArchOs :: ArchOS
- tgtVendor :: Maybe String
- tgtLocallyExecutable :: Bool
- tgtSupportsGnuNonexecStack :: Bool
- tgtSupportsSubsectionsViaSymbols :: Bool
- tgtSupportsIdentDirective :: Bool
- tgtWordSize :: WordSize
- tgtEndianness :: Endianness
- tgtSymbolsHaveLeadingUnderscore :: Bool
- tgtLlvmTarget :: String
- tgtUnregisterised :: Bool
- tgtTablesNextToCode :: Bool
- tgtUseLibffiForAdjustors :: Bool
- tgtCCompiler :: Cc
- tgtCxxCompiler :: Cxx
- tgtCPreprocessor :: Cpp
- tgtHsCPreprocessor :: HsCpp
- tgtJsCPreprocessor :: Maybe JsCpp
- tgtCmmCPreprocessor :: CmmCpp
- tgtCCompilerLink :: CcLink
- tgtAr :: Ar
- tgtRanlib :: Maybe Ranlib
- tgtNm :: Nm
- tgtMergeObjs :: Maybe MergeObjs
- tgtWindres :: Maybe Program
- wordSize2Bytes :: WordSize -> Int
- targetPlatformTriple :: Target -> String
Documentation
data Endianness Source #
Instances
Read Endianness Source # | |
Defined in GHC.Toolchain.Target readsPrec :: Int -> ReadS Endianness # readList :: ReadS [Endianness] # readPrec :: ReadPrec Endianness # readListPrec :: ReadPrec [Endianness] # | |
Show Endianness Source # | |
Defined in GHC.Toolchain.Target showsPrec :: Int -> Endianness -> ShowS # show :: Endianness -> String # showList :: [Endianness] -> ShowS # | |
Eq Endianness Source # | |
Defined in GHC.Toolchain.Target (==) :: Endianness -> Endianness -> Bool # (/=) :: Endianness -> Endianness -> Bool # | |
Ord Endianness Source # | |
Defined in GHC.Toolchain.Target compare :: Endianness -> Endianness -> Ordering # (<) :: Endianness -> Endianness -> Bool # (<=) :: Endianness -> Endianness -> Bool # (>) :: Endianness -> Endianness -> Bool # (>=) :: Endianness -> Endianness -> Bool # max :: Endianness -> Endianness -> Endianness # min :: Endianness -> Endianness -> Endianness # |
llc command
opt command
install_name_tool
otool command
A Target
consists of:
- a target architecture and operating system
- various bits of information about the platform
- various toolchain components targetting that platform
wordSize2Bytes :: WordSize -> Int Source #
The word size as an integer representing the number of bytes
targetPlatformTriple :: Target -> String Source #
Reconstruct the platform triple from a toolchain target (specifically from tgtArchOs and tgtVendor)