1. A method for modifying a program to allow the program to execute on a processor system that includes a programmable logic device, the method comprising: identifying a critical code segment of the program; rewriting the critical code segment as a function; revising the program by designating the function as a code to be compiled by an extension compiler and by replacing the critical code segment with a statement that calls the function; and compiling the revised program such that the function is executed by the programmable logic device.