1. A method of optimizing generation of natively executable code from non-native code, the method comprising: receiving a source file including binary code configured for execution according to a non-native instruction set architecture; translating one or more code blocks included in the executable binary code to source code; optimizing instructions in the source code with an optimizing algorithm to obtain optimized source code, wherein optimizing comprises converting a first source code function to a second source code function that comprises fewer address validations than the first source code function when translated to natively executable binary code, and wherein the second source code function comprises one or more address validations when translated to natively executable binary code; and compiling the optimized source code to generate an output file comprising natively executable binary code.