[GHC] #5210: Add primops for copying/cloning byte arrays
GHC
cvs-ghc at haskell.org
Mon May 23 12:01:35 CEST 2011
#5210: Add primops for copying/cloning byte arrays
---------------------------------+------------------------------------------
Reporter: tibbe | Owner: tibbe
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.0.3 | Keywords:
Testcase: | Blockedby:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Add primops for copying/cloning byte arrays so that we can unroll such
copies in the backends. Even if we don't unroll in the backend, this will
allow us to use `memcpy` for copying parts of the byte array, which is
difficult today as while `ByteArray#` can be passed in an FFI call, the
pointer that gets passed refers to the based of the array when we might
want it to refer to somewhere in the middle of the array.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5210>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list