1. A computer implemented method for accelerating execution of a first code block, comprising: compiling the first code block to form a compiled first code block, including: identifying a second code block within the first code block, wherein the second code block is suitable for kernel mode execution; and separating the second code block from the first code block; compiling the second code block into an object code module; executing the object code module to create a kernel program module (KPM) that is recognizable by a system kernel; generating glue code corresponding to the second code block, wherein the glue code is configured to copy data values of variables in the first code block to the kernel program module; passing the kernel program module as an argument to a virtual processor module for kernel mode execution; executing the first code block at run time, including: executing the compiled first code block in user mode; and copying required values of variables used in the first code block to the kernel program module; executing the kernel program module in kernel mode to form results of a kernel program module execution; returning the results of the kernel program module execution and modified data values of the kernel program module; binding the results of the kernel program module execution and the modified data values of the kernel program module to the first code block; and updating the first code block using the glue code.