GHC.CmmToAsm.Ppr

ghc-9.10.0.20240426: The GHC API

Safe Haskell | None
Language | GHC2021

GHC.CmmToAsm.Ppr

Synopsis

- doubleToBytes :: Double -> [Word8]
- floatToBytes :: Float -> [Word8]
- pprASCII :: IsLine doc => ByteString -> doc
- pprString :: IsLine doc => ByteString -> doc
- pprFileEmbed :: IsLine doc => FilePath -> doc
- pprSectionHeader :: IsLine doc => NCGConfig -> Section -> doc

# Documentation

doubleToBytes :: Double -> [Word8] Source #

Get bytes of a Double representation

floatToBytes :: Float -> [Word8] Source #

Get bytes of a Float representation

pprASCII :: IsLine doc => ByteString -> doc Source #

pprString :: IsLine doc => ByteString -> doc Source #

Emit a ".string" directive

pprFileEmbed :: IsLine doc => FilePath -> doc Source #

Emit a ".incbin" directive

A NULL byte is added after the binary data.

pprSectionHeader :: IsLine doc => NCGConfig -> Section -> doc Source #