1. A machine-readable non-transitory storage medium having instructions therein, which when executed by a machine, cause the machine to perform a method, the method comprising: providing a source code specifying operations in a programming language, wherein machine instructions are executable to perform the operations specified in the source code, the source code to be compiled into a compiled code, wherein a portion of the compiled code has been generated from the machines instructions, wherein a next portion of the compiled code is to be generated from a code block of the machine instructions; dynamically determining indicators indicating likelihood of trustworthiness of the code block; randomly determining whether to select the code block for randomization according to the indicators; randomizing, if the code block is selected for randomization, the code block to generate a randomized compiled code for the next portion of the compiled code, wherein the code block is randomized before completion of the compilation of the source code; and executing the compiled code to perform the operations.