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

Code conversion apparatus

A code conversion and code technology, applied in program control devices, program control design, instruments, etc., can solve the problems of reduced hardware use efficiency, reduced development efficiency, reduced debugability, etc., so as to improve development efficiency, improve execution performance, reduce The effect of code size

Inactive Publication Date: 2013-02-06
SOCIONEXT INC
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, there are problems of: performance degradation in terms of register pressing caused by inability to use reserved registers as general-purpose registers; increase in hardware resources; and reduction in hardware use efficiency
Therefore, it leads to a reduction in debugging performance and a reduction in development efficiency.

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
  • Code conversion apparatus
  • Code conversion apparatus
  • Code conversion apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0038] Next, a compiling system according to Embodiment 1 of the present invention will be described with reference to the drawings. and, by figure 1 The above-mentioned compiling system is realized by executing the program on the computer shown.

[0039] figure 2 It is a structural block diagram of the compiling system 1 according to the first embodiment of the present invention.

[0040] The compilation system 1 includes a driver 2 , a compiler 3 , an assembler 4 and a linker 5 .

[0041] The driver 2 has a function of starting the compiler 3 , assembler 4 , and linker 5 , which are other components of the compile system 1 , with appropriate options according to options specified by the user. For example, the driver 2 may start only the assembler 4 or only the assembler 4 and the linker 5 .

[0042] The compiler 3 receives the C language program 101 written by the programmer as an input, converts the C language program 101 into an internal intermediate representation, o...

Embodiment 2

[0095] Next, a compiling system according to Embodiment 2 of the present invention will be described. Most of the configuration of the compiling system according to the second embodiment is the same as that of the compiling system 1 pertaining to the first embodiment, but the method for the virtual instruction of the assembler 4 is different. Hereinafter, the difference will be mainly explained.

[0096] Figure 10 An example of compiler-generated assembler 102 is shown.

[0097] exist Figure 10 Among them, the line of (a) is the dummy command "expandinst_without_warning" unique to this embodiment. This dummy instruction is an instruction to "execute expansion processing of a numeric operand without issuing a warning at the time of linking". The compiler 3 outputs this dummy instruction at the beginning of the assembler when generating the assembler.

[0098] Figure 11 An example in which a programmer writes an assembler 103 is shown.

[0099] exist Figure 11 Among th...

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

The present invention effectively utilizes auxiliary registers and provides a compiler system which secures error detectability when the auxiliary registers are shared for plural uses. The instruction definition resource configuring unit configures, as preparation for processing by the register assigning unit, respective resources such as a register to be defined or referred to by for each instruction in an intermediate code. The instruction definition resource configuring unit detects possibility of instructions each of which is to be decomposed into plural instructions. As for an instruction to be possibly decomposed, the instruction definition resource configuring unit configures a corresponding register in the intermediate code, assuming the corresponding register used for the decomposition to be defined and referred. The register assigning unit uses the register as a general register as far as a live range of the register used for the decomposition does not overlap.

Description

technical field [0001] The present invention relates to a code conversion device, which converts a source program described in C language or assembly language into a machine language program; in particular, relates to a code conversion device, which effectively utilizes registers in a processor and ensures error detection of the source program sex. Background technique [0002] In an instruction using a constant such as an immediate value or an address executed by the processor, if the bit width of the constant exceeds the predetermined width of the instruction format, the function cannot be realized by a single instruction. Accordingly, it is necessary to decompose one instruction into a plurality of instructions, for example, an instruction for setting constants and an instruction for performing calculations. [0003] In this regard, there is a method in the prior art: for example, as the invention described in the patent document (Japanese Patent Application Laid-Open No...

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 Patents(China)
IPC IPC(8): G06F9/44G06F9/45
CPCG06F8/441
Inventor 瓶子岳人道本昌平饭村幸男山本康博
Owner SOCIONEXT INC