Patent ID: 6014519
Filing Date: 2000-01-11
Classification: G06F

Abstract:
A language processing unit for translating a source program into an object module file, comprising:syntax analysis means for inputting and analyzing a source program;code pattern registering means for registering code generation methods and code size differences about different code patterns in the case of generating code to put priority on making the size of an object module file small, and in the case of generating code to put priority on making the execution time short, wherein the source program is analyzed and divided into one or more different code patterns which can be repeatedly executed a number of times during execution of the source program;code size measuring means for measuring the size of an object module file in the case of code generation with priority on making the size of an object module file small, and the size of an object module file in the case of code generation with priority on making the execution time short, to an analysis results by said syntax analysis means, and counting the number of times of usage of each code pattern of said output codes registered in said code pattern registering means in generated operation codes;code pattern selecting means for replacing part or the whole of said generating code with priority on the execution time of an object module file with generating codes with priority on the size of an object module file so that they should be stored within the code size of an object module file designated by a programmer in reference to the measurement results of said code size measuring means and said registered contents of said code pattern registering means;code generation means for generating an operation code to an analysis results by said syntax analysis means, in accordance with said selection results of said code pattern selecting means; andobject module file output means for outputting said operation code generated by said code generation means as an object module file.