Patent ID: 6038397
Filing Date: 2000-03-14
Classification: G06F

Abstract:
A compiling method for converting the source code of a program to an object code, comprising:a lexical analysis step of analyzing the characters and phrases in said source code;a syntactic analysis step of analyzing the syntax of said program based on the result of analysis in said lexical analysis step;a semantic analysis step of analyzing the meaning of said program based on the result of analysis in said syntactic analysis step;a program division step of dividing said program into a plurality of processes based on the result of analysis in said semantic analysis step;a data reference analysis step of analyzing the data reference relations among the individual processes obtained through the division of the program in said program division step;a memory area allocation step of allocating memory areas to different data based on the data reference relations among the individual processes analyzed in said data reference analysis step; anda code generation step of generating the object code of said program based on the allocation of the memory areas in said memory area allocation step, whereinsaid data reference analysis step has the step of extracting first data used only in one of the plurality of processes obtained through the division of the program and second data the value of which need not be preserved in some of the plurality of processes obtained through the division of the program andsaid memory area allocation step has the step of allocating the memory area, which has been allocated to said first data, to another data in any of the processes in which said first data is not used and allocating the memory area, which has been allocated to said second data, to another data in some of the processes in which the value of said second data need not be preserved.