P
US8448158B2ExpiredUtilityPatentIndex 71

Program code generation support device and method, program execution device and method, and program code compression processing device and method and program thereof

Assignee: ITO TAKAHIROPriority: Feb 3, 2005Filed: Feb 2, 2006Granted: May 21, 2013
Est. expiryFeb 3, 2025(expired)· nominal 20-yr term from priority
Inventors:ITO TAKAHIROSUZUKI SHIGEKIOCHIAI YOSHIKOKUSHIRO NORIYUKIKOIZUMI YOSHIAKI
G06F 8/443
71
PatentIndex Score
5
Cited by
45
References
8
Claims

Abstract

To obtain a program code generation support device, method, and the like, capable of generating a new program code, in particular, generating in accordance with an incorporating apparatus, by performing a further optimization on a program code. The device includes storage means 6 for storing as data, an optimization rule that is composed of a conversion condition for converting data of a program code and a conversion content thereof, and code optimization means 4 that includes a code analysis unit 4 A for analyzing the program code, a condition search unit 4 B for search a part matching the conversion condition in the program code through a collation with the optimization rule stored in the storage means on the basis of the analyzed program code, and an optimization unit 4 C for generating data of a new program code by converting the part matching the conversion condition on the basis of the conversion content.

Claims

exact text as granted — not AI-modified
The invention claimed is: 
     
       1. A program execution device comprising:
 first storage means for storing data obtained by compressing a program code constituted by an execution code that is composed of process data used for an execution process and a command representing the execution process which are arranged in order; 
 second storage means for temporarily storing the process data; 
 type determination means for reading the data obtained by compressing the program code from the first storage means by a predetermined data amount each to determine whether or not the data contains the command, and storing the process data in the data in the second storage means when it is determined that the data does not contain the command; 
 code extension means for generating an execution code on the basis of the process data stored in the second storage means and the command when the type determination means determines that the data contains the command; and 
 execution means for sequentially performing the execution process of the program code on the basis of the execution code generated by the code extension means, 
 wherein the process data is piled in a stack, and the execution means performs the execution process on the basis of the program code described in a stack type language for the command to act on the stack to perform the execution process. 
 
     
     
       2. The program execution device according to  claim 1 , wherein the execution means performs the execution process based on the program code described in a language based on a reverse Polish notation. 
     
     
       3. The program execution device according to  claim 1 , wherein the predetermined data amount is set as 1 byte. 
     
     
       4. The program execution device according to  claim 1 , wherein 1 bit of the predetermined data amount is data of a flag for the determination means to determine whether or not the data is code data containing the command. 
     
     
       5. The program execution device according to  claim 1 , wherein data representing the number of data which does not contain the command is included in data of the predetermined data amount to be read first, and the type determination means determines the data of the predetermined data amount which is read for the number of data which does not contain the command as the data which does not contain the command, stores the process data in those pieces of data in the second storage means, and sets data of the predetermined data amount to be read next as the data containing the command. 
     
     
       6. The program execution device according to  claim 1 , wherein the number of the data containing the command is set for each command on the basis of a frequency in which the command is used. 
     
     
       7. The program execution device according to  claim 1 , wherein the first storage means stores data obtained by compressing the program code included in a signal that is sent via the communication circuit. 
     
     
       8. A program execution method comprising:
 reading data obtained by compressing a program code which is constituted by an execution code that is composed of process data used for an execution process and a command representing an execution process content which are arranged in order, from a first storage means by a predetermined amount of data each; 
 determining, by type determination means, whether or not the read data contains the command; 
 storing the process data in a second storage means in response to determining that the data does not contain the command and the read data contains the process data, and generating by code extension means an execution code on the basis of the process data stored in the second storage means and the command when it is determined that the data contains the command; and 
 sequentially performing an execution process of the program code by execution means on the basis of the execution code generated by the code extension means, 
 wherein the process data is piled in a stack, and the execution process is performed on the basis of the program code described in a stack type language for the command to act on the stack to perform the execution process.

Cited by (0)

No later patents cite this yet.

References (0)

No backward citations on record.