| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
GHC.Toolchain.Target
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
- tgtLlc :: Maybe Program
- tgtOpt :: Maybe Program
- tgtLlvmAs :: Maybe Program
- tgtWindres :: Maybe Program
- tgtOtool :: Maybe Program
- tgtInstallNameTool :: Maybe Program
- wordSize2Bytes :: WordSize -> Int
- targetPlatformTriple :: Target -> String
Documentation
Instances
| Eq WordSize Source # | |
| Ord WordSize Source # | |
Defined in GHC.Toolchain.Target | |
| Read WordSize Source # | |
| Show WordSize Source # | |
data Endianness Source #
Constructors
| LittleEndian | |
| BigEndian |
Instances
| Eq Endianness Source # | |
Defined in GHC.Toolchain.Target Methods (==) :: Endianness -> Endianness -> Bool Source # (/=) :: Endianness -> Endianness -> Bool Source # | |
| Ord Endianness Source # | |
Defined in GHC.Toolchain.Target Methods compare :: Endianness -> Endianness -> Ordering Source # (<) :: Endianness -> Endianness -> Bool Source # (<=) :: Endianness -> Endianness -> Bool Source # (>) :: Endianness -> Endianness -> Bool Source # (>=) :: Endianness -> Endianness -> Bool Source # max :: Endianness -> Endianness -> Endianness Source # min :: Endianness -> Endianness -> Endianness Source # | |
| Read Endianness Source # | |
Defined in GHC.Toolchain.Target | |
| Show Endianness Source # | |
Defined in GHC.Toolchain.Target | |
A Target consists of:
- a target architecture and operating system
- various bits of information about the platform
- various toolchain components targetting that platform
Constructors
Instances
| Eq Target Source # | |
| Ord Target Source # | |
| Read Target Source # | |
| Show Target Source # | Handwritten Show instance to have have better diffs against the toolchain targets generated by configure |
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)