CN104536799A - C/C++ application migration tool from HP-UX platform to K-UX platform - Google Patents

C/C++ application migration tool from HP-UX platform to K-UX platform Download PDF

Info

Publication number
CN104536799A
CN104536799A CN201510022164.9A CN201510022164A CN104536799A CN 104536799 A CN104536799 A CN 104536799A CN 201510022164 A CN201510022164 A CN 201510022164A CN 104536799 A CN104536799 A CN 104536799A
Authority
CN
China
Prior art keywords
platform
module
mismatch
identification module
operating system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510022164.9A
Other languages
Chinese (zh)
Inventor
康玉琢
杨治
文瑞超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201510022164.9A priority Critical patent/CN104536799A/en
Publication of CN104536799A publication Critical patent/CN104536799A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a C/C++ application migration tool from an HP-UX platform to a K-UX platform. The structure of the tool comprises migration tool software architecture. The software architecture is achieved based on the Java language and comprises an interactive module, an operating systematic difference recognition module, a complier difference recognition module and an amending advice module, wherein the interactive module, the operating systematic difference recognition module, the complier difference recognition module and the amending advice module are all connected with the interactive module. The operating systematic difference recognition module and the complier difference recognition module are both connected with the amending advice module. Compared with the prior art, the C/C++ application migration tool from the HP-UX platform to the K-UX platform can run on various servers and operating system platforms, provide guidance to application program cross-platform migration, improve efficiency of application program migration work, and fill inland gaps. Practicability is strong.

Description

A kind of C/C++ application migration instrument from hp-ux platform to K-UX platform
Technical field
The present invention relates to computer information technology field, specifically a kind of practical, C/C++ application migration instrument from hp-ux platform to K-UX platform.
Background technology
High-end server carries the core application of industry, is widely used in the crucial applications such as finance, telecommunications, the energy, traffic, and it runs and is directly connected to society, economic normal operation.For a long time, owing to lacking high-end server Design and manufacture ability, China's high-end server markets holds for foreign vendor always, and wherein IBM occupies the home market of more than 50% for a long time.Under the support of Department of Science and Technology's Eleventh Five-Year Plan 863 Program, relevant departments, R&D institution actively coordinate, and tide successfully have developed 32 tunnel high-end fault-tolerant computer systems, and availability reaches 99.999%, and system Transaction Processing ability reaches world-class levels.For improving the autonomous controllability of informatization Grand Equipments, increasing infosystem is tended to use from major product.Therefore, within following long period of time, domestic IT system construction is faced with the change of production domesticization, concrete Information System configuration and practice level, be presented as increasing cross-platform migration work, wherein a large amount of migrations is from IBM hp-ux platform to tide K-UX platform.
C/C++ source code is the foundation stone of basis of formation software, and such as database software, transaction middleware, message-oriented middleware, system tool are all based on C/C++ language development.And the core application software in fields such as finance, telecommunications, high-performance calculations also uses C/C++ language development in a large number.Due to the cpu instruction collection difference of heterogeneous server platforms, operating system difference and compiler difference, make heterogeneous server platforms C/C++ source code implantation technique difficulty high, workload is large.How reducing transplanting difficulty, reduce workload, is that under carrying out heterogeneous server platforms, C/C++ source code transplants the key issue needing to solve.
Summary of the invention
Technical assignment of the present invention is for above weak point, provides a kind of practical, C/C++ application migration instrument from hp-ux platform to K-UX platform.
A C/C++ application migration instrument from hp-ux platform to K-UX platform, the structure of this instrument comprises:
Migration tools software architecture, this framework realizes based on JAVA language, operating system difference identification module, compiler difference identification module and amending advice module that described framework comprises interactive module, is all connected with interactive module, operating system difference identification module, compiler difference identification module all connect above-mentioned amending advice module; Wherein:
Described interactive module is used for man-machine interaction, the information of manually setting is sent to operating system difference identification module, compiler difference identification module, receive operating system difference identification module, the real time scan information that compiler difference identification module is sent on display interface, interactive module receives the mismatch source code that amending advice module sends, mismatch source code position and amending advice information, and be presented on interface, allow user to carry out confirming and carrying out manual modification to every mismatch for the amending advice of every mismatch on interface simultaneously, after user confirms, confirmation and amendment information are sent to amending advice module,
Operating system difference identification module receives the manual set information that interactive module sends, according to manual set information and HP-UX and K-UX operating system variance rule, scanning sequence source code and makefile file, because of mismatch that the operating system difference of source platform and target platform causes in recognizer source code and makefile file, generate automatic amending advice, and all mismatch information and amending advice are sent to amending advice module, meanwhile, scanning mode can be sent to interactive module for interactive module and show in real time by operating system difference identification module in real time;
Compiler difference identification module receives the manual set information that interactive module sends, according to manual set information and HP-UX C compiler and K-UX C compiler variance rule, scanning sequence source code and makefile file, because of mismatch that the compiler difference of source platform and target platform causes in recognizer source code and makefile file, generate automatic amending advice, and all mismatch information and amending advice are sent to amending advice module, meanwhile, scanning mode can be sent to interactive module for interactive module and show in real time by compiler difference identification module in real time;
After the mismatch information that amending advice module reception operating system difference identification module and compiler difference identification module send and automatically amending advice, mismatch source code, mismatch source code position and amending advice are organized into Output of for ms to interactive module, and after the confirmation receiving mutual transmission and manual modification information, these amendment results are come into force in program source code and makefile file, and preserves new source code and makefile file.
Described interactive module is connected with operating system difference identification module first input/output end port with input/output end port, interactive module second input/output end port is connected with compiler difference identification module first input/output end port, interactive module the 3rd input/output end port is connected with amending advice module the 3rd input/output end port, operating system difference identification module second input/output end port is connected with amending advice module first input/output end port, compiler difference identification module second input/output end port is connected with amending advice module second input/output end port.
Described operating system difference identification module, compiler difference identification module all generate respective rule, and its specific rules is:
HP-UX and K-UX operating system variance rule, comprise process processing rule, file operation is regular, pointer operation is regular, its be operating system difference identification module scans program source code and makefile file time, identify the criterion of the code mismatch caused by the operating system difference of hp-ux platform and K-UX platform, and the foundation providing mismatch code revision to advise;
HP-UX C compiler and K-UX C compiler variance rule, this rule be compiler difference identification module scans program source code and makefile file time, identify the criterion of the code mismatch caused by the compiler difference of hp-ux platform and K-UX platform, and the foundation providing mismatch code revision to advise.
In described HP-UX and K-UX operating system variance rule, process processing rule is for identifying because hp-ux platform and K-UX platform process process difference cause the mismatch source code of operation result mistake, and operating system difference identification module generates process process mismatch source code amending advice according to process processing rule simultaneously; File operation rule for identifying because hp-ux platform and K-UX platform file difference in operation cause the mismatch source code of operation result mistake, while operating system difference identification module can according to file operation generate rule file operation mismatch source code amending advice; Pointer operation rule for identifying because hp-ux platform and K-UX platform pointer operation difference cause the mismatch source code of operation result mistake, while operating system difference identification module according to pointer operation generate rule pointer operation mismatch source code amending advice.
A kind of C/C++ application migration instrument from hp-ux platform to K-UX platform of the present invention, has the following advantages:
A kind of C/C++ application migration instrument from hp-ux platform to K-UX platform of this invention according to C/C++ source code in different CPU instruction set, different processing mode under operating system and compiler environment, conclude set of rule, the source code because platform difference causes can be identified, makefile file and operating system, the mismatch of compiler, amending advice is proposed, final output scanning result, all source code mismatches of recognizing and mismatch amending advice is embodied in scanning result, manual modification can be made in scanning result simultaneously, manual modification result can come into force in source code and makefile file, greatly reduce C/C++ migration of programs workload, improve the efficiency of application program migration work, reduce migration difficulty, practical, be easy to promote.
Accompanying drawing explanation
Accompanying drawing 1 is structural representation of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the invention will be further described.
The present invention proposes a kind of C/C++ application migration instrument from hp-ux platform to K-UX platform, can cross-platformly install, by scan source code and makefile file, according to the hp-ux platform set up and K-UX platform operating system variance rule, compiler variance rule, identify source code, makefile file and operating system, the mismatch of compiler, amending advice is proposed, final output scanning result, all source code mismatches of recognizing and mismatch amending advice is embodied in scanning result, manual modification can be made in scanning result simultaneously, manual modification result can come into force in source code and makefile file.As shown in Figure 1, the structure of this instrument comprises:
Migration tools software architecture, this framework realizes based on JAVA language, operating system difference identification module, compiler difference identification module and amending advice module that described framework comprises interactive module, is all connected with interactive module, operating system difference identification module, compiler difference identification module all connect above-mentioned amending advice module; Wherein:
Described interactive module is used for man-machine interaction, the information of manually setting is sent to operating system difference identification module, compiler difference identification module, receive operating system difference identification module, the real time scan information that compiler difference identification module is sent on display interface, interactive module receives the mismatch source code that amending advice module sends, mismatch source code position and amending advice information, and be presented on interface, allow user to carry out confirming and carrying out manual modification to every mismatch for the amending advice of every mismatch on interface simultaneously, after user confirms, confirmation and amendment information are sent to amending advice module,
Operating system difference identification module receives the manual set information that interactive module sends, according to manual set information and HP-UX and K-UX operating system variance rule, scanning sequence source code and makefile file, because of mismatch that the operating system difference of source platform and target platform causes in recognizer source code and makefile file, generate automatic amending advice, and all mismatch information and amending advice are sent to amending advice module, meanwhile, scanning mode can be sent to interactive module for interactive module and show in real time by operating system difference identification module in real time;
Compiler difference identification module receives the manual set information that interactive module sends, according to manual set information and HP-UX C compiler and K-UX C compiler variance rule, scanning sequence source code and makefile file, because of mismatch that the compiler difference of source platform and target platform causes in recognizer source code and makefile file, generate automatic amending advice, and all mismatch information and amending advice are sent to amending advice module, meanwhile, scanning mode can be sent to interactive module for interactive module and show in real time by compiler difference identification module in real time;
After the mismatch information that amending advice module reception operating system difference identification module and compiler difference identification module send and automatically amending advice, mismatch source code, mismatch source code position and amending advice are organized into Output of for ms to interactive module, and after the confirmation receiving mutual transmission and manual modification information, these amendment results are come into force in program source code and makefile file, and preserves new source code and makefile file.
Described interactive module is connected with operating system difference identification module first input/output end port with input/output end port, interactive module second input/output end port is connected with compiler difference identification module first input/output end port, interactive module the 3rd input/output end port is connected with amending advice module the 3rd input/output end port, operating system difference identification module second input/output end port is connected with amending advice module first input/output end port, compiler difference identification module second input/output end port is connected with amending advice module second input/output end port.
Described operating system difference identification module, compiler difference identification module all generate respective rule, and its specific rules is:
HP-UX and K-UX operating system variance rule, comprise process processing rule, file operation is regular, pointer operation is regular, its be operating system difference identification module scans program source code and makefile file time, identify the criterion of the code mismatch caused by the operating system difference of hp-ux platform and K-UX platform, and the foundation providing mismatch code revision to advise;
HP-UX C compiler and K-UX C compiler variance rule, this rule be compiler difference identification module scans program source code and makefile file time, identify the criterion of the code mismatch caused by the compiler difference of hp-ux platform and K-UX platform, and the foundation providing mismatch code revision to advise.
In described HP-UX and K-UX operating system variance rule, process processing rule is for identifying because hp-ux platform and K-UX platform process process difference cause the mismatch source code of operation result mistake, and operating system difference identification module generates process process mismatch source code amending advice according to process processing rule simultaneously; File operation rule for identifying because hp-ux platform and K-UX platform file difference in operation cause the mismatch source code of operation result mistake, while operating system difference identification module can according to file operation generate rule file operation mismatch source code amending advice; Pointer operation rule for identifying because hp-ux platform and K-UX platform pointer operation difference cause the mismatch source code of operation result mistake, while operating system difference identification module according to pointer operation generate rule pointer operation mismatch source code amending advice.
Based on the C/C++ application migration instrument from hp-ux platform to K-UX platform shown in accompanying drawing 1, its specific works process is:
1), after the described C/C++ application migration instrument start-up from hp-ux platform to K-UX platform, man-machine interaction is carried out by interactive module;
2) by the manual setting operation system information in interactive module interface, operating system version that behaviour's system version number that hp-ux platform uses, kernel version number and K-UX platform use number, kernel version number is comprised;
3) manually set compiler information by interactive module interface, comprise compiler that hp-ux platform uses and the compiler that version and K-UX platform use thereof and version thereof;
4) set information of operating system, compiler is confirmed by interactive module interface;
5) manually select by interactive module interface application source code and the makefile file thereof of intending migration;
6) operating system, the compiler information that will manually set of interactive module, and the application source code manually selected and makefile file are sent to operating system difference identification module, compiler difference identification module;
7) operating system difference identification module receives the manual set information that interactive module sends, according to manual set information and operating system variance rule, scanning sequence source code and makefile file, because of mismatch that the operating system difference of source platform and target platform causes in recognizer source code and makefile file, generate automatic amending advice, and all mismatch information and amending advice are sent to amending advice module, simultaneously, scanning mode can be sent to interactive module and show in real time for interactive module by operating system difference identification module in real time, the quantity of the scanning mode line number comprising scan code and the mismatch recognized of transmission,
8) compiler difference identification module receives the manual set information that interactive module sends, according to manual set information and compiler variance rule, scanning sequence source code and makefile file, because of mismatch that the compiler difference of source platform and target platform causes in recognizer source code and makefile file, generate automatic amending advice, and all mismatch information and amending advice are sent to amending advice module, simultaneously, scanning mode can be sent to interactive module and show in real time for interactive module by compiler difference identification module in real time, the quantity of the scanning mode line number comprising scan code and the mismatch recognized of transmission,
9) after systematical difference identification module to be operated and compiler difference identification module complete the scanning of program source code and makefile file, mismatch source code, mismatch source code position and amending advice, according to the mismatch information of the cpu instruction collection difference identification module received, operating system difference identification module and compiler difference identification module transmission and automatic amending advice, are organized into Output of for ms to interactive module by amending advice module;
10) interactive module is by interactive module interface display mismatch information form, user with reference to automatic amending advice, manual modification mismatch source code one by one in mismatch information form;
11) the mismatch source code that interactive module sends revises information to amending advice module;
12) the mismatch source code amendment information that amending advice module makes interactive module send comes into force in program source code and makefile file, and preserves new source code and makefile file.
Above-mentioned embodiment is only concrete case of the present invention; scope of patent protection of the present invention includes but not limited to above-mentioned embodiment; claims of any a kind of C/C++ application migration instrument from hp-ux platform to K-UX platform according to the invention and the those of ordinary skill of any described technical field to its suitable change done or replacement, all should fall into scope of patent protection of the present invention.

Claims (4)

1. the C/C++ application migration instrument from hp-ux platform to K-UX platform, it is characterized in that, the structure of this instrument comprises:
Migration tools software architecture, this framework realizes based on JAVA language, operating system difference identification module, compiler difference identification module and amending advice module that described framework comprises interactive module, is all connected with interactive module, operating system difference identification module, compiler difference identification module all connect above-mentioned amending advice module; Wherein:
Described interactive module is used for man-machine interaction, the information of manually setting is sent to operating system difference identification module, compiler difference identification module, receive operating system difference identification module, the real time scan information that compiler difference identification module is sent on display interface, interactive module receives the mismatch source code that amending advice module sends, mismatch source code position and amending advice information, and be presented on interface, allow user to carry out confirming and carrying out manual modification to every mismatch for the amending advice of every mismatch on interface simultaneously, after user confirms, confirmation and amendment information are sent to amending advice module,
Operating system difference identification module receives the manual set information that interactive module sends, according to manual set information and HP-UX and K-UX operating system variance rule, scanning sequence source code and makefile file, because of mismatch that the operating system difference of source platform and target platform causes in recognizer source code and makefile file, generate automatic amending advice, and all mismatch information and amending advice are sent to amending advice module, meanwhile, scanning mode can be sent to interactive module for interactive module and show in real time by operating system difference identification module in real time;
Compiler difference identification module receives the manual set information that interactive module sends, according to manual set information and HP-UX C compiler and K-UX C compiler variance rule, scanning sequence source code and makefile file, because of mismatch that the compiler difference of source platform and target platform causes in recognizer source code and makefile file, generate automatic amending advice, and all mismatch information and amending advice are sent to amending advice module, meanwhile, scanning mode can be sent to interactive module for interactive module and show in real time by compiler difference identification module in real time;
After the mismatch information that amending advice module reception operating system difference identification module and compiler difference identification module send and automatically amending advice, mismatch source code, mismatch source code position and amending advice are organized into Output of for ms to interactive module, and after the confirmation receiving mutual transmission and manual modification information, these amendment results are come into force in program source code and makefile file, and preserves new source code and makefile file.
2. a kind of C/C++ application migration instrument from hp-ux platform to K-UX platform according to claim 1, it is characterized in that, described interactive module is connected with operating system difference identification module first input/output end port with input/output end port, interactive module second input/output end port is connected with compiler difference identification module first input/output end port, interactive module the 3rd input/output end port is connected with amending advice module the 3rd input/output end port, operating system difference identification module second input/output end port is connected with amending advice module first input/output end port, compiler difference identification module second input/output end port is connected with amending advice module second input/output end port.
3. a kind of C/C++ application migration instrument from hp-ux platform to K-UX platform according to claim 1 and 2, it is characterized in that, described operating system difference identification module, compiler difference identification module all generate respective rule, and its specific rules is:
HP-UX and K-UX operating system variance rule, comprise process processing rule, file operation is regular, pointer operation is regular, its be operating system difference identification module scans program source code and makefile file time, identify the criterion of the code mismatch caused by the operating system difference of hp-ux platform and K-UX platform, and the foundation providing mismatch code revision to advise;
HP-UX C compiler and K-UX C compiler variance rule, this rule be compiler difference identification module scans program source code and makefile file time, identify the criterion of the code mismatch caused by the compiler difference of hp-ux platform and K-UX platform, and the foundation providing mismatch code revision to advise.
4. a kind of C/C++ application migration instrument from hp-ux platform to K-UX platform according to claim 3, it is characterized in that, in described HP-UX and K-UX operating system variance rule, process processing rule is for identifying because hp-ux platform and K-UX platform process process difference cause the mismatch source code of operation result mistake, and operating system difference identification module generates process process mismatch source code amending advice according to process processing rule simultaneously; File operation rule for identifying because hp-ux platform and K-UX platform file difference in operation cause the mismatch source code of operation result mistake, while operating system difference identification module can according to file operation generate rule file operation mismatch source code amending advice; Pointer operation rule for identifying because hp-ux platform and K-UX platform pointer operation difference cause the mismatch source code of operation result mistake, while operating system difference identification module according to pointer operation generate rule pointer operation mismatch source code amending advice.
CN201510022164.9A 2015-01-16 2015-01-16 C/C++ application migration tool from HP-UX platform to K-UX platform Pending CN104536799A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510022164.9A CN104536799A (en) 2015-01-16 2015-01-16 C/C++ application migration tool from HP-UX platform to K-UX platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510022164.9A CN104536799A (en) 2015-01-16 2015-01-16 C/C++ application migration tool from HP-UX platform to K-UX platform

Publications (1)

Publication Number Publication Date
CN104536799A true CN104536799A (en) 2015-04-22

Family

ID=52852331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510022164.9A Pending CN104536799A (en) 2015-01-16 2015-01-16 C/C++ application migration tool from HP-UX platform to K-UX platform

Country Status (1)

Country Link
CN (1) CN104536799A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112882761A (en) * 2021-03-05 2021-06-01 网易(杭州)网络有限公司 Game server engine migration method and device, processor and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101281461A (en) * 2007-04-04 2008-10-08 国际商业机器公司 Method and device for transfer applying dependent system environment
US7562354B2 (en) * 2004-07-01 2009-07-14 Winity Technology, Inc. Architecture and method of a cellular phone embedded system
CN103109271A (en) * 2012-08-30 2013-05-15 华为技术有限公司 Inter-platform application migration realization method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7562354B2 (en) * 2004-07-01 2009-07-14 Winity Technology, Inc. Architecture and method of a cellular phone embedded system
CN101281461A (en) * 2007-04-04 2008-10-08 国际商业机器公司 Method and device for transfer applying dependent system environment
CN103109271A (en) * 2012-08-30 2013-05-15 华为技术有限公司 Inter-platform application migration realization method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112882761A (en) * 2021-03-05 2021-06-01 网易(杭州)网络有限公司 Game server engine migration method and device, processor and electronic equipment

Similar Documents

Publication Publication Date Title
US10389602B2 (en) Automated feature deployment for active analytics microservices
CN103699548B (en) A kind of method and apparatus being recovered database data by usage log
CN103383688A (en) Main memory database system for geography coding/ geography processing
KR101588592B1 (en) Hybrid application development system based on object relational mapping and the method thereof
CN104881285A (en) Code snippet marking and reusing system based on body
CN104573121A (en) DB2 database migration tool migrating from AIX platform to K-UX platform
CN104765603A (en) Application program building method and device
Tipka et al. Flex_extract v7. 1.2–a software package to retrieve and prepare ECMWF data for use in FLEXPART
CN103955429A (en) Method and device for determining regression testing range
CN106681704A (en) Development device and development method of user interface
CN104536798A (en) C/C++application migration tool from SPARC platform to K-UX platform
CN110347522A (en) A kind of server-side and the integrated implementation method of client
CN104536799A (en) C/C++ application migration tool from HP-UX platform to K-UX platform
CN104516766A (en) C/C++ application migration tool from AIX platform to K-UX platform
CN102681861A (en) Method and device for installing software
CN104199675A (en) System capable of quick system development based on database parameter utilization
US20180189037A1 (en) Method, apparatus, and computer program product for generating updated network application interfaces
CN102541647B (en) Method for calling external function of executable component in software integration process
Rizqullah et al. Design and implementation of middleware system for IoT devices based on raspberry Pi
CN115509602A (en) Project management method, device, equipment and storage medium
US11327471B2 (en) Building and tracking of an automation engineering environment
CN110489430B (en) Tracing method and system based on data block signature and verification
CN103699377A (en) Reconstruction combination method for program codes
CN105574807A (en) Development platform of programmable stainer embedded into graphics processor
CN115952376B (en) Webpage access method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150422