Changes between Version 34 and Version 35 of Commentary/PrimOps


Ignore:
Timestamp:
Sep 10, 2016 8:19:16 PM (10 months ago)
Author:
trommler
Comment:

typo

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/PrimOps

    v34 v35  
    6565   C-- code for these !PrimOps: we don't have to write code for multiple calling conventions.
    6666
    67 It's possible to provide inline versions of out-of-line !PimOps. This is useful when we have enough static information to generated a short, more efficient inline version. For example, a call to {{{newArray# 8# init}}} can be implemented more efficiently as an inline !PrimOp as the heap check for the array allocation can be combined with the heap check for the surrounding code. See `shouldInlinePrimOp` in [[GhcFile(compiler/codeGen/StgCmmPrim.hs)]].
     67It's possible to provide inline versions of out-of-line !PrimOps. This is useful when we have enough static information to generated a short, more efficient inline version. For example, a call to {{{newArray# 8# init}}} can be implemented more efficiently as an inline !PrimOp as the heap check for the array allocation can be combined with the heap check for the surrounding code. See `shouldInlinePrimOp` in [[GhcFile(compiler/codeGen/StgCmmPrim.hs)]].
    6868
    6969=== Foreign out-of-line !PrimOps and `foreign import prim` ===