Unlock instant, AI-driven research and patent intelligence for your innovation.

Object-oriented optimization code generator and a method therefor

a code generator and object-oriented technology, applied in the field of automatic software generating system, can solve the problems of large target code, large memory capacity, and conventional code generation method that does not take into account any object-oriented function, and achieve the effect of reducing the memory capacity

Inactive Publication Date: 2005-07-21
HITACHI LTD
View PDF1 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Benefits of technology

The present invention provides a code generating system that optimizes code for different applications and embedded control systems without increasing memory capacity. The system includes a specification analyzer, a function removal means, and a code generation means. The specification analyzer analyzes object-oriented specifications to derive specification information. The function removal means removes unnecessary functions from object-oriented functions based on a predetermined rule. The code generation means generates a code based on the program information produced by the function removal means. The invention eliminates the mechanism required for realizing unnecessary functions, resulting in a code with reduced memory capacity.

Problems solved by technology

However, when a code is generated simply on the basis of the specification described by the operator, there arises such a problem that a target code becomes enormously large, thereby requiring a large memory capacity therefor.
However, the conventional code generation method as described above does not take into account whatsoever anything about an object-oriented function to use for generating an object-oriented program code.
That is, when generating a code from an object-oriented specification, unnecessary codes are also generated for unused functions of the object-oriented functions.
When this conventional code generation method is applied, in particular, to a software for an embedded control system, because a resulting output code becomes enormous, a large sized unit having a large memory capacity capable of implementing the enormous code will be required, thus there is such a problem that the cost of manufacture will increase substantially.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Object-oriented optimization code generator and a method therefor
  • Object-oriented optimization code generator and a method therefor
  • Object-oriented optimization code generator and a method therefor

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029]FIG. 1 is a schematic block diagram indicating a configuration of a code generator system of one embodiment of the invention. The code generator system is comprised of: an input device 101 such as a keyboard and a mouse for inputting a software specification and function select items which define conditions for generating an optimized code; a display device 102 such as a CRT for displaying the software specification and the function select items having been input through the keyboard and the like of the input device 101, as well as a code generated; a read / write device 103 for reading a software specification and function select items from a portable memory device such as a floppy disk, and writing the code generated into a memory device; a memory 104 for storing the software specification and the function select items having been entered through the input device 101 or the read / write device 103; and a processor unit 105 for generating an optimized code on the basis of the sof...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A code generation system is provided which optimizes a code generation for a control system applicable to an embedded control system without the need to increase its memory capacity. A total control unit 110 causes to read a model diagram and an operation diagram which depict a software specification stored in a memory 104, and starts specification analysis unit 106 to execute lexical and grammatical analyses thereof. Then, object-oriented function removing unit 107 is started to determine any function which is not used according to a function select item stored in the memory 104. Then, code generation unit 108 is started to generate a code on the basis of the result of the lexical and grammatical analyses of the software specification, and of an output code pattern determined by the object-oriented function removing unit 107.

Description

BACKGROUND OF THE INVENTION [0001] The present invention relates to an automatic software generating system, and in particular, to a software generating system for automatically generating a software from an object-oriented specification which features an improved code efficiency. [0002] A code generating system generates a software from an object-oriented software statement. Generally, a specification described by an operator is entered via an input device, then the specification is analyzed, and a program code is generated and output. [0003] However, when a code is generated simply on the basis of the specification described by the operator, there arises such a problem that a target code becomes enormously large, thereby requiring a large memory capacity therefor. [0004] In order to solve this problem associated with the conventional art, JPA Laid-Open No. 6-266562 discloses a method for reducing the size of a target code. This method includes the steps of: comparing a class name ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(United States)
IPC IPC(8): G06F9/44G06F9/45G06F9/06
CPCG06F8/24G06F8/443G06F8/30
Inventor NARISAWA, FUMIONAYA, HIDEMITSUYOKOYAMA, TAKANORIOHKAWA, KEIICHIRO
Owner HITACHI LTD