ghc-7.10.2: The GHC API

Safe HaskellSafe
LanguageHaskell2010

Platform

Description

A description of the platform we're compiling for.

Synopsis

Documentation

data Platform

Contains enough information for the native code generator to emit code for this platform.

data Arch

Architectures that the native code generator knows about. TODO: It might be nice to extend these constructors with information about what instruction set extensions an architecture might support.

Instances

data OS

Operating systems that the native code generator knows about. Having OSUnknown should produce a sensible default, but no promises.

Instances

data ArmISA

ARM Instruction Set Architecture, Extensions and ABI

Constructors

ARMv5 
ARMv6 
ARMv7 

data ArmABI

Constructors

SOFT 
SOFTFP 
HARD 

data PPC_64ABI

PowerPC 64-bit ABI

Constructors

ELF_V1 
ELF_V2 

target32Bit :: Platform -> Bool

This predicate tells us whether the platform is 32-bit.

osElfTarget :: OS -> Bool

This predicate tells us whether the OS supports ELF-like shared libraries.

osMachOTarget :: OS -> Bool

This predicate tells us whether the OS support Mach-O shared libraries.