Skip to content

fatteneder/Libffi.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Libffi.jl

This repository provides Julia bindings for libffi.

Installation

julia> import Pkg
julia> Pkg.add("https://github.com/fatteneder/Libffi.jl")

Usage

This package provides an LLVM independent @ccall mechanism based on libffi. You can use it as:

julia> import Libffi; Libdl

julia> libc = Libdl.dlopen("libc.so.6")

julia> p_clock = Libdl.dlsym(libc, :clock)

julia> cif = Libffi.Ffi_cif(Cint, ());

julia> Libffi.ffi_call(cif, p_clock, [])
22950370

References

TODO

  • Implement a version of ffi_call that caches cfi.
  • Implement a Libffi.@ccall macro.

About

Julia bindings for libffi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages