1. A global compiler for a heterogeneous multiprocessor, for causing a computer to execute the following processings to extract parallelism from an input program and generating an object program corresponding to a plurality of processor units in a system which includes a single or a plurality of types of processor units, the global compiler comprising the processings of: analyzing the input program by a code generation compiler only for the processor units having the input program prepared beforehand for each type of the processor unit of the system, to extract a program portion to be executed for each processor unit, and generating processing allocated processor information for designating the program portion; analyzing the input program to extract parallelism of the input program, and allocating the program portion to the processor unit based on the processing allocated processor information; and outputting the allocated program portion as an output code of each processor unit.