1. A compiler for producing an object program used to be executed on an architecture equipped with a plurality of memory hierarchies from a source program in conjunction with a computer system, comprising: a step for interpreting either an option or a designation statement designating which memory hierarchy a target program mainly refers to data present in, when the target program is executed; and a step for performing an optimizing process directed to said designated memory hierarchy.