wORD_SIZE vs platformWordSize of targetPlatform

Johan Tibell johan.tibell at gmail.com
Fri Aug 8 11:15:43 UTC 2014


Hi,

We seem to have two ways to get the same piece of information. We can get
the target (?) word size as wORD_SIZE but there's also the platformWordSize
field in the Platform data type, which is held as targetPlatform in
DynFlags. Which one should I use? Most code uses wORD_SIZE.

-- Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20140808/16f6477d/attachment-0001.html>


More information about the ghc-devs mailing list