search for: refunc

Displaying 3 results from an estimated 3 matches for "refunc".

Did you mean: refund
2010 Nov 02
1
[LLVMdev] Forcing the Interpreter segfaults
...nd execute it, and it works very well. Now I would like to execute it using the interpreter. And I get a segfault. Here is the code : // This code JIT the function and executes it llvm::InitializeNativeTarget(); llvm::ExecutionEngine * EJ = llvm::ExecutionEngine::create(&nM); typedef int (*REFunc)(const char *); union { void * obj; REFunc func; } u; u.obj = EJ->getPointerToFunction(func); REFunc jit = u.func; int ret = jit("aaa"); std::cout << std::endl << ret << std::endl; // This code interprets the function llvm::initializeCore(); llvm::ExecutionEngine...
2010 Nov 02
2
[LLVMdev] Forcing the Interpreter segfaults
...w I would like to execute it using the interpreter. And I get a segfault. >> Here is the code : >> // This code JIT the function and executes it >> llvm::InitializeNativeTarget(); >> llvm::ExecutionEngine * EJ  = llvm::ExecutionEngine::create(&nM); >> typedef int (*REFunc)(const char *); >> union { void * obj; REFunc func; } u; >> u.obj = EJ->getPointerToFunction(func); >> REFunc jit = u.func; >> int ret = jit("aaa"); >> std::cout << std::endl << ret << std::endl; >> // This code interprets the funct...
2010 Nov 02
0
[LLVMdev] Forcing the Interpreter segfaults
...sing the interpreter. And I get a > segfault. > >> Here is the code : > >> // This code JIT the function and executes it > >> llvm::InitializeNativeTarget(); > >> llvm::ExecutionEngine * EJ = llvm::ExecutionEngine::create(&nM); > >> typedef int (*REFunc)(const char *); > >> union { void * obj; REFunc func; } u; > >> u.obj = EJ->getPointerToFunction(func); > >> REFunc jit = u.func; > >> int ret = jit("aaa"); > >> std::cout << std::endl << ret << std::endl; > >> //...