Created
May 10, 2014 03:26
-
-
Save ishikawa/9b1c002dab494b455993 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# LLVM::JITCompiler#run_function can't handle aggregate value | |
engine = LLVM::JITCompiler.new(module) | |
function = module.functions["doSomething"] | |
pointer = engine.pointer_to_global(function) | |
fn = FFI::Function.new(:int, [:int], pointer) | |
fn.call(123) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment