1. A method for optimizing cache efficiency, comprising the steps of: receiving an application that includes a plurality of functions, said functions including compiled code, which are executed by a processor; locating each function; ordering said functions for placement in a cache memory, wherein said ordering is repeated until reaching a specified stopping point, wherein each permutation of said ordering produces a unique ordered sequence; evaluating the efficiency of each permutation of said ordering; and selecting a permutation that does not violate a specified optimization parameter to thereby optimize use of said cache memory.