[Haskell-cafe] exp implementation
Brandon Allbery
allbery.b at gmail.com
Thu Apr 11 16:37:21 CEST 2013
On Thu, Apr 11, 2013 at 1:38 AM, Christopher Howard <
christopher.howard at frigidcode.com> wrote:
> Hi. For my own learning, I wanted to see how the exp function is
> implemented in GHC. I have GHC 7.4.1 source code open, but I'm having
> trouble figuring out which file the actual function definition is in. I see
>
> expFloat (F# x) = F# (expFloat# x)
>
expFloat# is likely a primop; good luck.... Primops aka primitive
operations are generally implemented in the compiler backend as assembly
language or Cmm code. Untangling that part of ghc makes my head swim. >.>
--
brandon s allbery kf8nh sine nomine associates
allbery.b at gmail.com ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130411/0480fdd8/attachment.htm>
More information about the Haskell-Cafe
mailing list