search for: mynewfunction

Displaying 2 results from an estimated 2 matches for "mynewfunction".

2004 May 11
1
[LLVMdev] Follow-up on: Dynamic updates of current executed code
...the function code--\0A\00" ; Table of function pointer(s) %kernel = type { int ( sbyte* )* } int %main() { ; Create the kernel in memory, and get pointer to first function pointer %theKernel = malloc %kernel %FirstFunctionPTR = getelementptr %kernel* %theKernel, long 0, ubyte 0 ;Load code %myNewFunction = %getPointerToGlobal(%dynamically_compiled_function_code) ; Write memory address of myNewFunction() into kernel struct store RETURNTYPE (PARAMTYPE*)* %myNewFunction, RETURNTYPE (PARAMTYPE*)** %FirstFunctionPTR ;Any code using first function element in %kernel is now_ ;using dynamically updated f...
2004 Apr 20
2
[LLVMdev] Dynamic updates of current executed code
...function pointer(s) %kernel = type { int ( sbyte* )* } int %main() { ; Create the kernel in memory, and get pointer to first function pointer %theKernel = malloc %kernel %FirstFunctionPTR = getelementptr %kernel* %theKernel, long 0, ubyte 0 ;Load code %myNewFunction = %getPointerToGlobal(%dynamically_compiled_function_code) ; Write memory address of myNewFunction() into kernel struct store RETURNTYPE (PARAMTYPE*)* %myNewFunction, RETURNTYPE (PARAMTYPE*)** %FirstFunctionPTR ;Any code using first function element in %kernel is now_...