Patent ID: 8595711

Claim:
A method comprising: identifying, prior to producing sequences of optimized executable instructions associated with a source code file, a portion of a compilation unit that consumes a larger amount of a processing resource than other portions of the compilation unit, wherein the compilation unit is at least one of the source code file or an intermediate form of the source code file; isolating, prior to producing the sequences of the optimized executable instructions, the identified portion of the compilation unit from other portions of the compilation unit; repeatedly translating, by a processing device, the isolated portion of the compilation unit to produce the sequences of optimized executable instructions, wherein each iteration of the translating applies different compiler optimization options to different subportions of the isolated portion in parallel; selecting a compiler optimization option of the different compiler optimization options that is associated with a subportion of the different subportions that meets a performance criteria; and compiling the portion of the compilation unit using the selected compiler optimization option associated with the subportion meeting the performance criteria.