摘要 |
PURPOSE:To efficiently execute the integer residue calculation of 2<n> especially by converting an argument and 2<n>-1 into a binary number, and generating an AND instruction to take the logic AND of both numbers, and executing the integer residue calculation containing the AND instruction. CONSTITUTION:It is a method to be carried out as follows. The integer residue calculation of 2<n> is set in a source program 1, and in a FORTRAN compiler 2, the AND of M, i.e., 2<n>-1, converted into the binary number, and N, i.e., the argument (a), expressed by the binary number, is taken, and the lowest digit, i.e., the residue is left. An AND instruction code generation system is given. The shift instruction code of an operation processing which makes an object program 3 execute an efficient processing is generated according to said AND instruction code and the object program 3 containing the generated AND instruction is executed. Thus, since the integer residue calculation processing through 2<n> can be processed by generating the AND instruction code, an execution object performance is improved.
|