ghc-7.8.20140130: The GHC API

Safe HaskellSafe-Inferred
LanguageHaskell98

Platform

Description

A description of the platform we're compiling for.

Synopsis

Documentation

data PlatformSource

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

data ArchSource

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 OSSource

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

Instances

data ArmISASource

ARM Instruction Set Architecture, Extensions and ABI

Constructors

ARMv5 
ARMv6 
ARMv7 

data ArmABISource

Constructors

SOFT 
SOFTFP 
HARD 

osElfTarget :: OS -> BoolSource

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

osMachOTarget :: OS -> BoolSource

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