WO2004051470A1 - プログラム自動変換方法およびプログラム自動変換装置 - Google Patents
プログラム自動変換方法およびプログラム自動変換装置 Download PDFInfo
- Publication number
- WO2004051470A1 WO2004051470A1 PCT/JP2003/015305 JP0315305W WO2004051470A1 WO 2004051470 A1 WO2004051470 A1 WO 2004051470A1 JP 0315305 W JP0315305 W JP 0315305W WO 2004051470 A1 WO2004051470 A1 WO 2004051470A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- instruction pattern
- program
- source program
- pattern information
- analysis
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000004458 analytical method Methods 0.000 claims abstract description 138
- 238000006243 chemical reaction Methods 0.000 claims abstract description 83
- 238000003860 storage Methods 0.000 claims description 31
- 238000004519 manufacturing process Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 13
- 238000012545 processing Methods 0.000 description 11
- 238000005516 engineering process Methods 0.000 description 9
- 229940036310 program Drugs 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 2
- 238000009826 distribution Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000012937 correction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 229940079593 drug Drugs 0.000 description 1
- 239000003814 drug Substances 0.000 description 1
- 238000013508 migration Methods 0.000 description 1
- 230000005012 migration Effects 0.000 description 1
- 238000013515 script Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/51—Source to source
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
Definitions
- the present invention relates to a program automatic conversion device for analyzing a program and automatically converting a part or all of the program, a program therefor, and the like. .
- Such technology is a technology that automatically detects differences in descriptions that occur due to compiler differences, and improves or improves development work by automatically correcting or restoring.
- This technology parses a source program written in C language, creates a database for each token and an intermediate file, and targets it on the database. It deletes and modifies character strings, generates information about the database and intermediate files in a c language file, and generates a target program.
- the object code that can be executed based on a given computer resource is divided into an instruction code area D2 and a data code area by a segment divider. Divided into D3.
- the instruction code area D 2 includes an instruction code converter.
- the instruction set and the ⁇ S primitive are analyzed and converted into an instruction statement in a high-level program language.
- the data code area D3 the data type corresponding to the type of the instruction code referred to is determined, and the data syntax is converted by a data syntax converter into a data code in a high-level program language. It is converted to a definition statement.
- the reference area converter adds a reference name for the statement to the database definition statement, converts the statement to a format in which the statement uses the reference name, and converts the high-level language program. It is generated.
- the second conventional technique is based on the premise that all program objects on a specific computer are automatically converted. , it is conceivable that .
- the conventional technology in order to migrate the operating environment of one program, one program can operate efficiently even in the environment after the migration. This is not taken into account. Therefore, in the prior art, it is not possible to automatically convert which instruction pattern of the source program to be converted is to be automatically converted and which instruction pattern is to be manually performed.
- the prior art when developing an automatic conversion program that automatically or semi-automatically converts a program, it corresponds to the instruction pattern in each case. It was not possible to determine whether an automatic conversion program to be developed should be developed, and the source program could not be converted efficiently.
- the program to be converted is The prerequisite is to develop a program that automatically converts instruction patterns that appear only once. Disclosure of the invention
- the automatic program conversion method includes a first instruction pattern information which is information indicating an instruction pattern of an old source program and a new source program.
- One or more pairs of the second instruction pattern information which is information indicating the instruction pattern of the first source program, are stored in the storage unit.
- the description location of the old source program corresponding to the first instruction pattern information is An instruction pattern conversion step for converting using the conversion means so as to correspond to the second instruction pattern information paired with the first instruction pattern information; and the instruction pattern.
- a new program output step for outputting a new source program, which is a result of converting the old source program in the conversion step, using an output means.
- the old source program corresponding to the first instruction pattern information analyzed when the number of appearances of the first instruction pattern information in the analysis step is less than the predetermined number. For the description of the old source program, the description of the old source program by the user manually was added to the new source.
- a program for changing to a program including a step for receiving input using input means, and a program for operating a program that has been operating in one environment in another environment
- This is an automatic conversion method, and the program can be ported efficiently and with few defects by such an automatic conversion method.
- the second invention is different from the first invention in that the new program output step includes the instruction pattern conversion step in the new source program.
- This is an automatic program conversion method that visually distinguishes and converts the parts that have been converted by the map and the parts that have not been converted. This enables efficient checking when the rammer visually checks the converted program.
- the above-mentioned program conversion method may be implemented by a program or by an 81-way door such as a dedicated circuit. It is realized as a program or a program automatic conversion device.
- the above program conversion method can be said to be a program production method for producing a program to be transplanted.
- FIG. 1 is a block diagram of the program analysis device according to the first embodiment of the present invention.
- FIG. 2 is a flowchart illustrating the operation of the program analysis device according to the first embodiment of the present invention.
- FIG. 3 shows the instruction pattern information management in the first embodiment. It is a figure which shows a table.
- FIG. 4 is a diagram showing an instruction pattern occurrence count management table according to the first embodiment.
- FIG. 5 is a diagram showing an example of a program according to the first embodiment.
- FIG. 6 is a diagram showing an instruction pattern appearance count management table according to the first embodiment.
- FIG. 7 is a diagram showing an instruction pattern occurrence count management table according to the first embodiment.
- FIG. 8 is a diagram illustrating an example of an analysis result according to the first embodiment.
- FIG. 9 is a diagram showing a display example of the analysis result in the first embodiment.
- FIG. 10 is a block diagram of a program automatic conversion device according to the second embodiment.
- FIG. 11 is a flowchart explaining the operation of the program automatic conversion apparatus according to the second embodiment.
- FIG. 12 is a diagram illustrating an instruction pattern information management table according to the second embodiment.
- FIG. 13 is a diagram showing an example of a new program after conversion according to the second embodiment.
- FIG. 14 is a diagram illustrating an example of a new program according to the second embodiment.
- BEST MODE FOR CARRYING OUT THE INVENTION embodiments of a program analysis device and a program automatic conversion device according to the present invention will be described with reference to the drawings. In the embodiments, the same reference numerals are used. The components marked with perform the same operation, and may not be described again.
- FIG. 1 shows a block diagram of the program analyzer.
- the program analysis device has an instruction pattern information storage unit 101, a program storage unit 102, an analysis unit 103, and an analysis result output unit 104.
- the program analysis device is, for example, a personal computer with a MPU memory memory disk.
- the instruction pattern information storage unit 101 stores one or more pieces of instruction pattern information, which is information indicating an instruction pattern of a program.
- the instruction pattern information storage unit 101 can be realized by a non-volatile recording medium or a volatile recording medium.
- the program storage unit 102 stores a program.
- the program storage unit 102 can be realized by a non-volatile recording medium or a volatile recording medium.
- a program is usually a source program, and its language does not matter.
- the programs include HTML and XML, which are so-called scripts. Also, the program does not matter whether it is a procedural program, a declarative program, etc. Data group (header file, etc.).
- the analysis unit 103 is stored in the program storage unit 102. Analyze how many times one or more instruction pattern information appears in a given program.
- the analysis unit 103 can be generally realized by an MPU, a memory, or the like.
- the processing procedure for the analysis unit 103 to perform the analysis is usually realized by software, and the software is recorded on a recording medium such as an R ⁇ M. Yes. However, it may be realized by hardware (dedicated circuit).
- the analysis result output unit 104 outputs the analysis result in the analysis unit 103.
- Output usually refers to display on the display, but also includes printing on the screen and transmission to other devices.
- output is a concept that includes storage on a recording medium such as a hard disk.
- the analysis result output unit 104 may be considered to include or not include the output display.
- the analysis result output unit 104 can be realized by, for example, driver software of an output device.
- the analysis unit 103 reads the program in the program storage unit 102.
- This program is the program to be analyzed.
- the analysis unit 103 reads the program specified by the user.
- Step S202 The analysis unit 103 reads one or more instruction pattern information stored in the instruction pattern information storage unit 101. ⁇
- Step S203 The analysis unit 103 executes the instruction Set the number of occurrences of the instruction pattern, which is the number of times the report appears, to zero. Note that the number of occurrences of the instruction pattern corresponding to all the instruction pattern information is stored, for example, in a memory held by the analysis unit 103.
- Step S204 The analysis unit 103 substitutes 1 for the count i.
- This counter is the program counter of the program read in step S201. That is, the analysis unit 103 analyzes the i-th line of the program read in step S201 by the following processing. In this case, it is assumed that the program is a program with one instruction pattern per line.
- Step S205 The analysis unit 103 detects that the i-th program source line exists in the program read in step S201. Determine whether to do so. If the i-th program source line exists, go to step S206, and if the i-th program source line does not exist, go to step S206. Jump to S2 1 3
- Step S206 The analysis unit 103 substitutes 1 for the count j.
- the counter j is a counter for acquiring the instruction pattern information to be used for analysis among the one or more instruction pattern information read in step S202. It is.
- Step S207 The analysis unit 103 sets the i-th program source line to the instruction pattern corresponding to the j-th instruction pattern information. Judge whether the line is a line of the open. Step S if the i-th program source line is the j-th instruction pattern Go to 208, and if it is not the j-th instruction pattern, jump to step S210. Judgment as to whether the i-th program source line corresponds to the j-th instruction pattern information can be made by syntax analysis, lexical analysis, etc., using existing technology. Since there is, detailed description is omitted here.
- Step S208 The analysis unit 103 increments the number of occurrences of the instruction pattern corresponding to the j-th instruction pattern information by one.
- Step S209 The analysis unit 103 increments i. Return to step S205.
- Step S210 The analysis unit 103 increments j.
- Step S211 The analysis unit 103 determines whether or not: the i-th instruction pattern exists in the instruction pattern information storage unit 101. If the j-th instruction pattern exists, the process returns to step S207, and if the j-th instruction pattern does not exist, the process proceeds to step S212. .
- Step S2 12 The analysis unit 103 outputs an error indicating that the instruction pattern does not correspond to any instruction pattern. However, this error output processing may be omitted.
- the analysis result output unit 104 outputs the analysis result.
- the analysis result is the number of occurrences of the instruction pattern in each instruction pattern information.
- Figure 3 shows the instruction pattern information.
- This is an instruction pattern information management table held by the storage unit 101.
- the instruction pattern information management table stores a plurality of records having “ID” and “instruction pattern information”.
- ID is information for identifying a record, and is information used for table management.
- Instruction pattern information is an attribute that stores the instruction pattern information.
- FIG. 4 is an instruction pattern appearance count management table held by the analysis unit 103.
- the instruction pattern appearance count management table has one or more records having “ID” and “appearance count”. “ID” corresponds to “ID” in the instruction pattern information management table of FIG. “Occurrence count” indicates the number of appearances of the instruction pattern. The initial value of “number of appearances” is all “0”.
- FIG. 5 shows an example of a program stored in the program storage unit 102.
- the program analyzer starts the analysis of the program shown in FIG. 5 according to a user's instruction.
- the lines starting with "*" are comment lines. Note that the program analyzer does not perform analysis after judging that it is a comment line.
- the analysis unit 103 first reads the first line of the program in FIG.
- the first line is a comment line, so move to the next line (progress program countdown).
- the analysis unit 103 does not perform the analysis because the second line and the eighth line are comment lines.
- the analysis unit 103 reads “IDENTIFICATIONDIVISION.J” on the ninth line of the program.
- Variable 0 1 “Variable 0 2” and the like mean variables.
- a variable consists of an alphanumeric string.
- PSD 712 is a variable.
- Increment the value of "Number of occurrences" of "2" by one.
- the analysis result output unit 104 outputs an analysis result as shown in FIG.
- the analysis result has “ID”, “number of times”, and “instruction pattern”. “Count” is the number of appearances.
- the analysis result of FIG. 8 is composed of an instruction pattern information management table of FIG. 3 and an instruction pattern occurrence count management table of FIG. Specifically, the analysis result of Fig. 8 is based on the key "IDJ" of the instruction pattern information management table of Fig. 3 and the key "ID" of the instruction pattern occurrence count management table of Fig. 7. Then, it is the result of the combined operation and output.
- an instruction pattern in which a certain number of times or more appear may be visually distinguished from other instruction patterns and displayed.
- an analysis result as shown in FIG. 9 is displayed.
- an instruction pattern that appears three or more times is displayed so as to be visually distinguished from other instruction patterns.
- the manner in which an instruction pattern in which a certain number of times or more appear is visually distinguished from other instruction patterns and displayed is not limited to the aspect in FIG. 9 and may be anything.
- a program that implements the operations described in the present embodiment includes, in a computer, instruction pattern information that is information indicating an instruction pattern of the program. 1 or more is stored, and the program is used to analyze how many times the 1 or more instruction pattern information appears. And a program for executing an analysis result output step for outputting an analysis result in the analysis step.
- the analysis of the program is performed by one program analysis device, but the processing may be shared by a plurality of devices. That is, one or more instruction pattern information, which is information indicating an instruction pattern of a program, is stored, and in the program, one or more instruction pattern information is stored several times.
- One or more of the program analysis methods include an analysis step for analyzing whether or not they appear, and an analysis result output step for outputting an analysis result in the analysis step. If the program can be analyzed using the device, the above-described effects can be obtained.
- FIG. 10 shows a block diagram of a program automatic conversion device.
- the program automatic conversion device includes an instruction pattern correspondence information storage unit 1001, a program storage unit 102, an analysis unit 103, a condition storage unit 1002, and an instruction pattern storage unit.
- a turn conversion unit 1003 and a new program output unit 1004 are provided.
- the program automatic conversion device is, for example, a personal computer having an MPU, a memory, a hard disk, and the like.
- the instruction pattern correspondence information storage unit 1001 stores the first instruction pattern information, which is information indicating the instruction pattern of the old program (the program to be converted). One or more pairs of the second instruction pattern information, which is the information indicating the instruction pattern of the new program (converted program) and the new program, are stored.
- the instruction pattern corresponding information storage unit 1001 is a non-volatile storage medium or a volatile storage. It is also feasible with recording media.
- the condition storage unit 1002 automatically converts a part of the old program corresponding to the first instruction pattern information so as to correspond to the second instruction pattern information. Stores conditions.
- the condition storage unit 1002 can be realized by a non-volatile recording medium or a volatile recording medium.
- the conditions are embedded in a program that implements the processing performed by the instruction pattern conversion unit 1003 (defined in a header file, etc.). In some cases).
- the condition is a condition based on the analysis result of the analysis unit 103.
- the instruction pattern conversion unit 1003 provides a condition storage unit 1002 for the program (old program) stored in the program storage unit 102. A part of the old program corresponding to the first instruction pattern information matching the condition stored in the first instruction pattern information is converted to the first instruction pattern information paired with the first instruction pattern information. Performs conversion to correspond to two-instruction pattern information.
- the instruction pattern conversion unit 1003 can usually be realized from an MPU, a memory, or the like.
- the processing procedure for the instruction pattern conversion unit 1003 to convert the information is usually realized by software, and the software is used to record information such as ROM. It is recorded on the medium. However, it may be implemented with a hardware or hardware (dedicated circuit).
- the new program output section 1004 outputs a new program that is the result of the program conversion by the instruction pattern conversion section 1003. .
- Output usually refers to display on the display, but printing on the screen, transmission to other devices, and recording media (C) Storage on hard disks, digital multi-purpose disks, etc.).
- the new program output unit 104 may be considered to include or not include the output display and the recording medium.
- the new program output unit 104 can be realized by, for example, a driver of an output device.
- Step S111 Execute the program analysis routine.
- This program analysis routine is a program analysis process described using the flowchart in FIG. 2, and is a program to be converted. Outputs the number of occurrences of each instruction pattern in the old program.
- Step S111 The instruction pattern conversion unit 1003 reads the program in the program storage unit 102. If there are two or more programs in the program storage unit 102, for example, the instruction pattern conversion unit 1003 sends the program specified by the user. Load the program.
- the instruction pattern conversion unit 1003 stores one or more first instructions stored in the instruction pattern correspondence information storage unit 1001. Read the pattern information.
- Step S111 The instruction pattern conversion unit 1003 substitutes the counter i 1.
- This counter is the program counter of the program read in step S1102. That is, the instruction pattern conversion unit 1003 replaces the i-th row of the program read in step S1102 with the following. Converted by processing.
- the program is a program of one instruction per line.
- Step S1105 The instruction pattern conversion unit 1003 executes the program on the i-th line in the program read in step S1102. To determine if a source exists. If the program source on the i-th line exists, the process goes to step S1106, and if the program source on the i-th line does not exist, step S1. Fly to 1 1 6
- Step S1106 The instruction pattern conversion unit 1003 substitutes 1 for the counter j.
- the counter j is set in step S 1
- One or more first instruction patterns read in 03,-This is a power source for acquiring the first instruction pattern information used for the conversion of-information.
- Step S1107 The instruction pattern conversion unit 1003 determines that the program source on the i-th line is based on the j-th first instruction pattern information. Judge whether to respond. If it corresponds to the j-th first instruction pattern information, go to step S1108, and if it does not correspond to the j-th first instruction pattern information, go to step S1108. Step S 1 1
- Whether the program source on the i-th line corresponds to the j-th instruction pattern information is determined by the syntax of the program source on the i-th line. It is possible by analysis and lexical analysis.
- Step S111 The instruction pattern conversion unit 1003 determines whether the j-th first instruction pattern information matches the condition of the condition storage unit 1002. The determination is made based on the analysis result of the program analysis routine in step S111. j-th If the one-instruction pattern information matches the condition, go to step S1109, and if the j-th first-instruction pattern information does not match the condition, step S111 Fly to 1 1 1 5
- Step S1109) The instruction pattern conversion unit 1003 converts the second instruction pattern information paired with the j-th first instruction pattern information into Obtained from the instruction pattern correspondence information storage unit 1001.
- Step S111 The instruction pattern conversion unit 1003 acquired the program source of the i-th row in step S1109. Convert to the instruction pattern indicated by the second instruction pattern information (Step S 1 1 1 1) The instruction pattern conversion unit 1003 converts the instruction pattern to Step S 1 1 1 0 Add the source of the i-th line converted by the above to the new program.
- the new program is stored in a file, for example, and file generation and file opening are performed at the initialization stage (not shown). To be.
- Step S1 1 1 2 Increment the counter i. Return to step S111.
- Step S1 1 1 Increment the counter j.
- Step SI114 The instruction pattern conversion unit 1003 determines whether or not the j-th first instruction pattern information exists. If the j-th first instruction pattern information exists, the process returns to step S1107, and if the j-th first instruction pattern information does not exist, the step returns. Go to step S 1 1 15.
- Step SI 1 15 The instruction pattern converter 1 0 3 Add the source in the i-th line to the new program.
- the source of the i-th line here is, for example, a comment line.
- the new program output section 1004 outputs the converted program (new program).
- the output here includes processing that is only stored on a recording medium (such as a hard disk).
- the first instruction pattern information did not match the conditions of the condition storage section 1002, and the first instruction pattern was not automatically converted to the second instruction pattern.
- the programmer manually changes the second instruction pattern using an input means such as a keyboard. That is, although not shown, the program automatic conversion device is provided with input means such as a keyboard and a mouse.
- FIG. 12 is an instruction pattern information management table held by the instruction pattern correspondence information storage unit 1001.
- the instruction pattern information management table stores a plurality of records having “ID”, “first instruction pattern information”, and “second instruction pattern information”. “ID” is information for identifying a record.
- the instruction pattern information management table stores the source line of the first instruction pattern information that appears in the program to be converted into the second instruction pattern information that forms a pair. This is a correspondence table used when conversion is performed to correspond. Specifically, if the "first instruction pattern information" is "SOURCE-COMPUTER. XXXXX. J", the "second instruction pattern information""## SOURCE-COMPUTER.
- FIG. 5 shows an example of an old program stored in the program storage unit 102.
- FIG. 8 is an instruction pattern appearance count management table showing the result of analysis by the analysis unit 103. Further, the condition storage unit 1002 converts a program line of the first instruction pattern information having two or more occurrences into second instruction pattern information. It is assumed that the conditions are maintained.
- Figure 13 shows an example of the new program.
- the newly generated lines in the new program are underlined.
- converted rows and unconverted rows are visually distinguished from each other.
- one row of the old program corresponds to n rows of the new program (where n is a natural number). Only the case where the new program is used for the old program m rows (m is a natural number of 2 or more) N rows (where n is a natural number) may correspond.
- the program can be automatically or semi-automatically converted. Specifically, instruction patterns with less than a certain number of occurrences that have not been developed until a program for converting the source program has been developed are manually modified. Then, a program was developed to convert the source program only for instruction patterns with a certain number of occurrences (for example, two or more occurrences). In this case, the program can be converted efficiently by automatically converting the program using the conversion program. With such a program automatic converter, for example, it is very efficient to operate a program that has been operating in one environment in a new environment. It can be done properly and safely.
- the automatic program conversion is performed.
- the device is provided with input means for manual correction.
- the input means is, for example, a keypad mouse.
- the part converted manually and the part automatically converted A new program may be stored or displayed in a manner that visually distinguishes the converted part from the non-converted part.
- "@" and “@” are comments indicating manual work.
- “@ DEL @” is manual Indicates that the line was deleted, and "@ ADD @” indicates that the line was manually added.
- the condition for determining whether to perform automatic conversion or manual conversion is determined by the appearance of the first instruction pattern information in the program.
- the condition was that the number of times was set as a parameter (in the above example, the condition that automatic conversion was performed when the number of occurrences was 2 or more), but it was determined based on other conditions. May be good.
- a configuration may be employed in which a first command pattern to be automatically converted is specified by a user input.
- the program that implements the operation described in the present embodiment is a program in which the first instruction, which is information indicating the instruction pattern of the old source program, is stored in the computer. One or more pairs of the pattern information and the second instruction pattern information, which is information indicating the instruction pattern of the new source program, are stored in the old source program.
- the number of appearances of the first instruction pattern information is equal to or more than a predetermined number (the predetermined number is 2 or more).
- Instruction pattern conversion step that converts the description of the corresponding old source program to correspond to the second instruction pattern information that is paired with the first instruction pattern information
- a new program output step for outputting a new program as a result of converting the old source program in the instruction pattern conversion step; and the analysis step.
- the description location of the old source program corresponding to the first instruction pattern information analyzed
- a program for executing a step for accepting input for changing the description of the old source program to the new source program manually by the user is executed. It is a gram.
- the program is converted by one program automatic conversion device, but the processing may be shared by a plurality of devices. That is, the following program automatic conversion method may be realized by a plurality of devices.
- First instruction pattern information which is information indicating the instruction pattern of the old source program
- second instruction pattern which is information indicating the instruction pattern of the new source program
- One or more pairs of information are stored in the storage unit, and in the old source program, the number of occurrences of the one or more first instruction pattern information is analyzed using an analysis means.
- the old source program corresponding to the first instruction pattern information analyzed.
- An instruction pattern conversion step for converting the description portion using a conversion means so as to correspond to the second instruction pattern information paired with the first instruction pattern information; and
- a new program output step for outputting, using output means, a new source program which is a result of converting the old source program in the pattern conversion step.
- the old source program corresponding to the first instruction pattern information analyzed that the number of appearances of the first instruction pattern information in the analysis step is less than the predetermined number.
- a step of accepting input using input means for changing the description of the old source program to the new source program manually by the user for the description of Provide operate in certain environment
- the which was pro-gram Ri by the pro-gram automatic conversion method for operating in other environments, efficient, and, failure rather small pro-gram is Ru can be ported.
- the above-described program automatic conversion apparatus implements a method of producing a program that operates in a new environment (that is, an environment of a transplant destination). It is a device. That is, the program automatic conversion device realizes the following program production method.
- the first instruction pattern information is information indicating the instruction pattern of the old source program
- the second instruction information is information indicating the instruction pattern of the new source program.
- One or more pairs of pattern information are stored in the storage unit, and the number of occurrences of the one or more first instruction pattern information in the old source program is analyzed.
- the analysis step of performing analysis using the means and the analysis result of the analysis step are described below.
- An analysis result output step for outputting using the output means, and a predetermined number of occurrences of the first instruction pattern information in the analysis step (the predetermined number is 2 or more) As described above, the description part of the old source program corresponding to the analyzed first instruction pattern information is replaced with the second instruction pattern paired with the first instruction pattern information.
- Pattern conversion step for converting using the conversion means so as to correspond to the pattern information, and the old source program in the instruction pattern conversion step.
- a new program output step for outputting the converted new source program using output means, and a first instruction pattern in the analysis step.
- a program for producing a program for operating in one environment from a program operating in one environment comprising a step for receiving input using an input means.
- the new program output step in the above-mentioned program production method is converted by the above-mentioned instruction pattern conversion step in the new source program.
- a method of producing a program that visually distinguishes between a converted part and a part that has not been converted may be used.
- the program production apparatus for realizing the above-described program production method is provided in a new environment (that is, the environment of the transplant destination) as described below. ) Works with Pro Dara It is said to be a device that produces
- the production equipment includes the first instruction pattern information, which is information indicating the instruction pattern of the old source program, and the instruction pattern of the new source program.
- One or more pairs of the second instruction pattern information that is information indicating the instruction pattern, the instruction pattern correspondence information storage section that stores the pair, and one or more second instruction pattern information pairs in the old source program.
- An analysis unit that analyzes how many times one instruction pattern information appears; an analysis result output unit that outputs the analysis result in the analysis unit; and an analysis unit that outputs the first instruction pattern information.
- the description part of the old source program corresponding to the first instruction pattern information analyzed.
- an input receiving unit for receiving an input for changing the description place of the old source program to a new source program by a user's manual operation.
- the above-mentioned new program output unit sees, in the new source program, the parts that were converted by the instruction pattern conversion unit and those that were not converted. You may output them visually.
- the program conversion method and apparatus can analyze the instruction pattern included in the program to be converted, and as a result, can efficiently program It is useful as a method and a device for transplanting a drug.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Devices For Executing Special Programs (AREA)
Abstract
Description
Claims
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US10/518,090 US7831964B2 (en) | 2002-12-05 | 2003-11-28 | Program automatic converting method and program automatic converting device |
AU2003284504A AU2003284504A1 (en) | 2002-12-05 | 2003-11-28 | Program automatic converting method and program automatic converting device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002-354264 | 2002-12-05 | ||
JP2002354264A JP3494376B1 (ja) | 2002-12-05 | 2002-12-05 | プログラム解析装置およびプログラム |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2004051470A1 true WO2004051470A1 (ja) | 2004-06-17 |
Family
ID=31712378
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/JP2003/015305 WO2004051470A1 (ja) | 2002-12-05 | 2003-11-28 | プログラム自動変換方法およびプログラム自動変換装置 |
Country Status (6)
Country | Link |
---|---|
US (1) | US7831964B2 (ja) |
JP (1) | JP3494376B1 (ja) |
KR (1) | KR100688444B1 (ja) |
CN (1) | CN100345116C (ja) |
AU (1) | AU2003284504A1 (ja) |
WO (1) | WO2004051470A1 (ja) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100673499B1 (ko) * | 2005-01-13 | 2007-01-24 | 한국과학기술연구원 | 디지털 합금 다원 화합물 반도체의 분산 브랙 반사경 |
JP4712512B2 (ja) * | 2005-10-14 | 2011-06-29 | 富士通株式会社 | プログラム変換プログラム、プログラム変換装置、プログラム変換方法 |
JP4115511B1 (ja) * | 2007-05-08 | 2008-07-09 | 株式会社システムズ | プログラムパターン分析装置、パターン出現状況情報生産方法、パターン情報生成装置、およびプログラム |
US8490052B2 (en) * | 2008-10-14 | 2013-07-16 | Microsoft Corporation | Declarative programming model for authoring and execution control and data flow for resource oriented system |
US8533666B2 (en) * | 2008-10-17 | 2013-09-10 | Microsoft Corporation | Interactive design environments to visually model, debug and execute resource oriented programs |
US8635694B2 (en) * | 2009-01-10 | 2014-01-21 | Kaspersky Lab Zao | Systems and methods for malware classification |
JP2012053657A (ja) * | 2010-09-01 | 2012-03-15 | Systems:Kk | 情報処理装置、情報処理方法、及びプログラム |
JP5124660B2 (ja) * | 2011-02-01 | 2013-01-23 | 株式会社システムズ | プログラムの生産方法および生産装置 |
US8621442B2 (en) * | 2011-02-09 | 2013-12-31 | Beek Fund B.V. L.L.C. | Quicker translation of a computer program source code |
KR20130097252A (ko) * | 2012-02-23 | 2013-09-03 | 삼성전자주식회사 | 소스 코드 분석에 의한 응용 프로그램 분석을 위한 방법 및 장치 |
JP6019843B2 (ja) * | 2012-07-11 | 2016-11-02 | 富士通株式会社 | 拡張言語仕様情報提供方法、拡張言語仕様情報提供プログラム、およびコンパイル装置 |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01290036A (ja) * | 1988-05-18 | 1989-11-21 | Nec Corp | ソースメンバの文字列圧縮方式 |
JPH0553822A (ja) * | 1991-08-27 | 1993-03-05 | Matsushita Electric Ind Co Ltd | 共通部分式文の削除方法及びその装置 |
JPH05324343A (ja) * | 1992-05-22 | 1993-12-07 | Hitachi Software Eng Co Ltd | プログラムコンバートシステム |
JPH086815A (ja) * | 1994-06-21 | 1996-01-12 | Mitsubishi Electric Corp | デバッグ装置、コンパイラ及び統計解析装置 |
JPH1046837A (ja) * | 1996-07-31 | 1998-02-17 | Concrete Kooring Kk | 工事用機械装置 |
JPH11224199A (ja) * | 1998-02-06 | 1999-08-17 | Matsushita Electric Ind Co Ltd | 翻訳装置と情報処理装置および記録媒体 |
US6014519A (en) * | 1996-08-19 | 2000-01-11 | Nec Corporation | Language processing unit and a language processing method to translate a source program and generate an object module file |
JP2002014826A (ja) * | 2000-06-29 | 2002-01-18 | Toshiba Corp | インタプリタおよびそのプログラム実行方法 |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0769830B2 (ja) * | 1987-08-18 | 1995-07-31 | 日本電気株式会社 | 展開制御機能をもつプログラム翻訳装置 |
JPH0542513Y2 (ja) | 1987-09-16 | 1993-10-26 | ||
JP3237869B2 (ja) * | 1991-06-26 | 2001-12-10 | 株式会社東芝 | 電力系統運用訓練シミュレータ |
JPH0778742B2 (ja) * | 1992-08-12 | 1995-08-23 | インターナショナル・ビジネス・マシーンズ・コーポレイション | コンピユータ・プログラム言語変換装置及びその方法 |
JP3907716B2 (ja) * | 1995-06-29 | 2007-04-18 | 株式会社エース電研 | 遊技機 |
US5950004A (en) * | 1996-09-13 | 1999-09-07 | The United States Of America As Represented By The Secretary Of The Navy | Model-based process for translating test programs |
US6044220A (en) * | 1997-02-25 | 2000-03-28 | Motorola, Inc. | Method and apparatus for operating a data processor to execute software written using a foreign instruction set |
CN1311881A (zh) * | 1998-06-04 | 2001-09-05 | 松下电器产业株式会社 | 语言变换规则产生装置、语言变换装置及程序记录媒体 |
US6901588B1 (en) * | 2000-04-17 | 2005-05-31 | Codemesh, Inc. | Sharing components between programming languages by use of polymorphic proxy |
JP2002001486A (ja) * | 2000-06-20 | 2002-01-08 | Asahi Tec Corp | 地下構造物用蓋体の鋳型装置 |
US7086046B2 (en) * | 2001-07-30 | 2006-08-01 | International Business Machines Corporation | Method and apparatus for displaying compiler-optimizated code |
-
2002
- 2002-12-05 JP JP2002354264A patent/JP3494376B1/ja not_active Expired - Fee Related
-
2003
- 2003-11-28 KR KR1020047018061A patent/KR100688444B1/ko active IP Right Grant
- 2003-11-28 US US10/518,090 patent/US7831964B2/en active Active
- 2003-11-28 CN CNB2003801004739A patent/CN100345116C/zh not_active Expired - Lifetime
- 2003-11-28 AU AU2003284504A patent/AU2003284504A1/en not_active Abandoned
- 2003-11-28 WO PCT/JP2003/015305 patent/WO2004051470A1/ja active Application Filing
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01290036A (ja) * | 1988-05-18 | 1989-11-21 | Nec Corp | ソースメンバの文字列圧縮方式 |
JPH0553822A (ja) * | 1991-08-27 | 1993-03-05 | Matsushita Electric Ind Co Ltd | 共通部分式文の削除方法及びその装置 |
JPH05324343A (ja) * | 1992-05-22 | 1993-12-07 | Hitachi Software Eng Co Ltd | プログラムコンバートシステム |
JPH086815A (ja) * | 1994-06-21 | 1996-01-12 | Mitsubishi Electric Corp | デバッグ装置、コンパイラ及び統計解析装置 |
JPH1046837A (ja) * | 1996-07-31 | 1998-02-17 | Concrete Kooring Kk | 工事用機械装置 |
US6014519A (en) * | 1996-08-19 | 2000-01-11 | Nec Corporation | Language processing unit and a language processing method to translate a source program and generate an object module file |
JPH11224199A (ja) * | 1998-02-06 | 1999-08-17 | Matsushita Electric Ind Co Ltd | 翻訳装置と情報処理装置および記録媒体 |
JP2002014826A (ja) * | 2000-06-29 | 2002-01-18 | Toshiba Corp | インタプリタおよびそのプログラム実行方法 |
Non-Patent Citations (1)
Title |
---|
"ACOS Software ACOS-6/NVX SEA/1 CASEWORLD Pattern", 1993, FIRST EDITION, JP, NEC CORP., article "Buhin Toroku Riyo no Tebiki FPI76-1", pages: 8 - 14, XP002976289 * |
Also Published As
Publication number | Publication date |
---|---|
JP3494376B1 (ja) | 2004-02-09 |
KR20050030896A (ko) | 2005-03-31 |
KR100688444B1 (ko) | 2007-03-02 |
CN100345116C (zh) | 2007-10-24 |
US20060156292A1 (en) | 2006-07-13 |
AU2003284504A1 (en) | 2004-06-23 |
CN1692334A (zh) | 2005-11-02 |
JP2004185508A (ja) | 2004-07-02 |
US7831964B2 (en) | 2010-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111142903B (zh) | 一种基于文件对比的配置文件交互式更新方法及装置 | |
US8091071B2 (en) | Method and system for template-based code generation | |
US20040068715A1 (en) | System and method for migration of software | |
US20040049768A1 (en) | Method and program for compiling processing, and computer-readable medium recoding the program thereof | |
US20070168984A1 (en) | Compiling system, debugging system and program development system | |
JP2005011345A (ja) | コードセグメント作成方法及びそのシステム | |
JP4370525B2 (ja) | アプリケーション環境チェック装置及び方法とそのプログラム | |
US20090037801A1 (en) | Method and apparatus for automatic user manual generation | |
WO2004051470A1 (ja) | プログラム自動変換方法およびプログラム自動変換装置 | |
CN105159746B (zh) | 面向容错组合web服务的可靠性仿真工具 | |
US20190361684A1 (en) | Systems and methods for providing an application transformation tool | |
CN113778897A (zh) | 接口的自动测试方法、装置、设备及存储介质 | |
CN117234529A (zh) | 一种基于dsl解析资源生成api的方法 | |
US20050289525A1 (en) | Extensible command line parsing | |
JP5041990B2 (ja) | ソフトウェア部品抽出支援装置 | |
US20230409956A1 (en) | Machine learning prediction of additional steps of a computerized workflow | |
CN116126658A (zh) | 一种屏幕操作日志流程挖掘方法、系统、设备及存储介质 | |
GB2397905A (en) | Method for automatically generating and ordering test scripts | |
WO2007097014A1 (ja) | 情報システムの動作確認方法、その動作確認プログラム、記録媒体及び動作確認システム | |
JP4983027B2 (ja) | チェックプログラム及びチェック方法 | |
CN112699011A (zh) | 统计增量代码覆盖率的方法、装置及电子设备、存储介质 | |
JP2019179383A (ja) | Api処理方法、端末、api処理プログラム | |
JP4698943B2 (ja) | プログラム生産方法、プログラム生産装置、プログラム自動変換方法、およびプログラム | |
JP7524690B2 (ja) | 判定プログラム、判定方法および情報処理装置 | |
US12001324B2 (en) | Operation pattern generation apparatus, operation pattern generation method and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AK | Designated states |
Kind code of ref document: A1 Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BW BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE EG ES FI GB GD GE GH GM HR HU ID IL IN IS KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NI NO NZ OM PG PH PL PT RO RU SC SD SE SG SK SL SY TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW |
|
AL | Designated countries for regional patents |
Kind code of ref document: A1 Designated state(s): BW GH GM KE LS MW MZ SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IT LU MC NL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application | ||
WWE | Wipo information: entry into national phase |
Ref document number: 1020047018061 Country of ref document: KR |
|
WWE | Wipo information: entry into national phase |
Ref document number: 20038A04739 Country of ref document: CN |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2685/CHENP/2004 Country of ref document: IN |
|
WWP | Wipo information: published in national office |
Ref document number: 1020047018061 Country of ref document: KR |
|
ENP | Entry into the national phase |
Ref document number: 2006156292 Country of ref document: US Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 10518090 Country of ref document: US |
|
122 | Ep: pct application non-entry in european phase | ||
WWP | Wipo information: published in national office |
Ref document number: 10518090 Country of ref document: US |