@hackage inline-asm0.1.1.0
Inline some Assembly in ur Haskell!
Installation
Dependencies (4)
- base >=4.7 && <5
- ghc-prim
- template-haskell >=2.15.0.0
- uniplate Show all…
Dependents (0)
inline-asm
When inline C is too safe.
Did you try inline-c, but it's not enough? You need more? Nothing seems to satisfy?
inline-asm to the rescue!
For now the usage is pretty straightforward: use defineAsmFun to define the
corresponding function, like
defineAsmFun "timesTwo" [t| Word -> Word |] "add %rbx, %rbx"