search for: main_fp

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

2014 Sep 01
2
[LLVMdev] Problem linking and JITing code through C++-API
...JIT) .create(); if(!jit) { std::cerr << "Failed to create JIT compiler: " << errmsg << std::endl; return EXIT_FAILURE; } // Execute the program. std::cout << "Begin Execution..." << std::endl; // rtlib->dump(); void * main_fp = jit->getPointerToFunction(rtlib->getFunction("main")); int32_t (*target_program)() = (int32_t(*)())(intptr_t)(main_fp); std::cout << "Ready..." << std::endl; return target_program(); #if 0 // Write a bitcode file and interpret it. { std::stri...
2014 Sep 02
2
[LLVMdev] Problem linking and JITing code through C++-API
...;Failed to create JIT compiler: " << errmsg << std::endl; > > return EXIT_FAILURE; > > } > > // Execute the program. > > std::cout << "Begin Execution..." << std::endl; > > // rtlib->dump(); > > void * main_fp = jit->getPointerToFunction(rtlib->getFunction("main")); > > int32_t (*target_program)() = (int32_t(*)())(intptr_t)(main_fp); > > std::cout << "Ready..." << std::endl; > > return target_program(); > > #if 0 > > // Wr...
2014 Sep 08
2
[LLVMdev] Problem linking and JITing code through C++-API
...gt; std::endl; > > > > return EXIT_FAILURE; > > > > } > > > > // Execute the program. > > > > std::cout << "Begin Execution..." << std::endl; > > > > // rtlib->dump(); > > > > void * main_fp = > jit->getPointerToFunction(rtlib->getFunction("main")); > > > > int32_t (*target_program)() = (int32_t(*)())(intptr_t)(main_fp); > > > > std::cout << "Ready..." << std::endl; > > > > return target_program(); &g...