[go: up one dir, main page]

CN117009178A - Monitoring method for executable file in source code migration process - Google Patents

Monitoring method for executable file in source code migration process Download PDF

Info

Publication number
CN117009178A
CN117009178A CN202310977369.7A CN202310977369A CN117009178A CN 117009178 A CN117009178 A CN 117009178A CN 202310977369 A CN202310977369 A CN 202310977369A CN 117009178 A CN117009178 A CN 117009178A
Authority
CN
China
Prior art keywords
migration
source code
task
tasks
file
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
CN202310977369.7A
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.)
Sichuan Cric Technology Co ltd
Original Assignee
Sichuan Cric Technology 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 Sichuan Cric Technology Co ltd filed Critical Sichuan Cric Technology Co ltd
Priority to CN202310977369.7A priority Critical patent/CN117009178A/en
Publication of CN117009178A publication Critical patent/CN117009178A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method for monitoring an executable file in a source code migration process, which is characterized in that the executable file is generated by automatically acquiring compiling environments and versions required by source codes, automatically matching different commands in a background, realizing migration and repeated submission through a queue, displaying results in an output file in real time, realizing a plurality of source code migration requirements, tracking flow defects in real time, reducing the time for carrying out the next operation after manual waiting for processing is completed, and providing powerful guarantee for smooth execution of source code migration.

Description

Monitoring method for executable file in source code migration process
Technical Field
The invention relates to the technical field of computer software, in particular to a method for monitoring an executable file in a source code migration process.
Background
In the development process of the computer architecture, two major categories of CISC (complex instruction set) and RISC (reduced instruction set) are created, different design concepts and methods are adopted respectively, the CISC adopts a single complex instruction to complete a specific complex function, the memory access efficiency is improved, and the RISC adopts a plurality of reduced short instructions to complete the specific complex function, so that the running speed of a processor is improved. Based on the two instruction sets, two main CPU architectures are generated, namely an X86 architecture, a CISC complex instruction set is adopted, and an ARM architecture adopts a RISC reduced instruction set.
The CISC instruction set has the advantages of huge instruction system, complex instruction number, instruction format and addressing mode, unfixed instruction word length, great difference between various instruction execution periods and access frequencies and adoption of the design of a micro instruction code control unit. The RISC instruction set selects the reduced instruction with highest use frequency, avoids complex instructions, reduces the number of instructions, the instruction format and the types of addressing modes, fixes the instruction length and can finish most instructions in one machine cycle. The control logic is mainly used, and micro instruction codes are not used or are rarely used for control.
With the increase of the traffic and complexity of various fields, the continuous development of IT technology and the continuous improvement of computational power requirements, more and more applied processor architectures shift the vision from the x86 architecture with high power consumption to the perfect hardware ecological ARM architecture. However, new application development may be based on a new ARM platform, but applications that have been developed based on x86 in the past still need to migrate to the new platform. The current migration methods are mainly focused on: manually inputting commands to package the software package on the source CPU, finding out the part needing to be modified, modifying if the problems of source code compiling and the like, and performing cyclic operation; the method has the defects that the efficiency is low, and meanwhile, only one source code can be packed, modified, compiled and migrated, and the flow cannot be tracked.
Disclosure of Invention
The invention aims to solve the problems and provide a method for monitoring executable files in a source code migration process.
The invention realizes the above purpose through the following technical scheme:
a method for monitoring executable files in a source code migration process comprises the following steps:
step 1, uploading an application source code packet: the background stores the uploaded source code package into a temporary folder of a server, performs MD5 encryption on the file, adds a package name as a unique identifier of the file and returns the unique identifier;
step 2, adding a migration task: selecting different migration target architectures, operating systems and database environments for the target source code package, newly adding corresponding migration tasks after submitting, and simultaneously generating a unique UUID as a unique identifier of the migration task and returning the unique identifier;
step 3, newly adding multiple tasks: after the original task is submitted, repeatedly creating or selecting a plurality of target source code packages to create a plurality of waiting tasks at one time, and gradually executing the waiting tasks in sequence by a background;
step 4, generating an executable file and scanning: the background determines corresponding compiling operation environments and packaging measures by scanning configuration files of source codes according to different migration target architectures, operating systems and database environments of tasks, automatically matches different commands, performs asynchronous queue execution, performs background processing in a specific execution process, and finally generates executable files and performs compatibility scanning;
step 5, generating a task processing log: creating log files for different tasks by UUIDs of the tasks, storing the log files in subfiles of related source code packages, and monitoring the logs in real time by websocket to acquire processing progress and defect problems of the tasks in real time;
step 6, obtaining a scanning result: and when the target migration source code packaging scanning is finished, generating a corresponding migration report for the completed task.
Further, in the step 2, after the identifier is generated, the task is given to an initial state: waiting.
In the step 4, the execution state of the task is modified as follows: in execution.
In the step 5, after the task is executed, the current task in execution is modified as follows: has been completed.
Further, in the step 6, the migration report includes a file path, a file name, a modified code line number, and a code modification suggestion.
The invention has the beneficial effects that:
according to the method for monitoring the executable file in the source code migration process, the executable file is generated by automatically acquiring the compiling environment and version required by the source code, automatically matching different commands in the background, implementing migration for multiple times through the queue, displaying the result in the output file in real time, implementing a plurality of source code migration requirements, and being capable of tracking flow defects in real time, simultaneously reducing the time for carrying out the next operation after the completion of manual waiting processing by asynchronous operation, and providing powerful guarantee for smooth execution of source code migration.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following description will briefly explain the practical drawings required in the embodiments or the prior art description, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail below. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, based on the examples herein, which are within the scope of the invention as defined by the claims, will be within the scope of the invention as defined by the claims.
In any embodiment, as shown in fig. 1, a method for monitoring an executable file in a source code migration process according to the present invention includes:
step 1, uploading an application source code packet; the background stores the uploaded source code package into a temporary folder of a server, performs MD5 encryption on the file, adds a package name as a unique identifier of the file and returns the unique identifier;
step 2, newly adding a migration task; selecting different migration target architectures, operating systems and database environments for target source code packages, adding corresponding migration tasks after submitting, generating unique UUIDs as unique identifiers of the migration tasks, returning the unique identifiers, and giving the tasks to an initial state: waiting;
step 3, newly adding a multi-task; after the original task is submitted, a plurality of target source code packages can be repeatedly built or selected to build a plurality of tasks in standby at one time, and the standby background is gradually executed in sequence;
step 4, generating an executable file and scanning; the background determines corresponding compiling operation environments and packaging measures by scanning configuration files of source codes according to different migration target architectures, operating systems and database environments of tasks, automatically matches different commands, performs asynchronous queue execution, and modifies the execution state of the tasks into the following states before execution: in execution; the background processing of the specific execution process is carried out, and an executable file is finally generated and compatibility scanning is carried out;
step 5, generating a task processing log; creating log files for different tasks by UUIDs of the tasks, storing the log files in subfiles of related source code packages, and monitoring the logs in real time by websocket to acquire processing progress and defect problems of the tasks in real time; after the task is executed, the current task in execution is modified as follows: completed;
step 6, obtaining a scanning result; when the target migration source code package scanning is finished, a corresponding migration report is generated for the completed task, wherein the migration report comprises a file path, a file name, a modified code line number and a code modification suggestion.
According to the method, compiling and running environments and various versions required by the source codes are automatically acquired, different processes are carried out on the background according to different requirements, so that corresponding executable files are generated, migration and repeated submission are realized through a queue, different log results are output into the log files in real time, and the content of the application source codes is timely modified through monitoring the output results, so that migration is realized. By the method, a plurality of migration tasks are submitted once, the waiting time of the next operation is reduced, and a user can perform the operation of the next migration file without waiting for a migration result. The method combines different processes of executable file generation of source codes and log monitoring of a plurality of tasks to obtain a quicker and simpler realization effect.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims. In addition, the specific features described in the above embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, various possible combinations are not described further. Moreover, any combination of the various embodiments of the invention can be made without departing from the spirit of the invention, which should also be considered as disclosed herein.

Claims (5)

1. The method for monitoring the executable file in the source code migration process is characterized by comprising the following steps of:
step 1, uploading an application source code packet: the background stores the uploaded source code package into a temporary folder of a server, performs MD5 encryption on the file, adds a package name as a unique identifier of the file and returns the unique identifier;
step 2, adding a migration task: selecting different migration target architectures, operating systems and database environments for the target source code package, newly adding corresponding migration tasks after submitting, and simultaneously generating a unique UUID as a unique identifier of the migration task and returning the unique identifier;
step 3, newly adding multiple tasks: after the original task is submitted, repeatedly creating or selecting a plurality of target source code packages to create a plurality of waiting tasks at one time, and gradually executing the waiting tasks in sequence by a background;
step 4, generating an executable file and scanning: the background determines corresponding compiling operation environments and packaging measures by scanning configuration files of source codes according to different migration target architectures, operating systems and database environments of tasks, automatically matches different commands, performs asynchronous queue execution, performs background processing in a specific execution process, and finally generates executable files and performs compatibility scanning;
step 5, generating a task processing log: creating log files for different tasks by UUIDs of the tasks, storing the log files in subfiles of related source code packages, and monitoring the logs in real time by websocket to acquire processing progress and defect problems of the tasks in real time;
step 6, obtaining a scanning result: and when the target migration source code packaging scanning is finished, generating a corresponding migration report for the completed task.
2. The method for monitoring a source code migration process executable file according to claim 1, wherein in the step 2, after generating the identifier, the task is given to an initial state: waiting.
3. The method for monitoring executable files in a source migration process according to claim 1, wherein in the step 4, the execution state of the task is modified before execution as follows: in execution.
4. The method for monitoring executable files in a source code migration process according to claim 1, wherein in the step 5, after the task is executed, the current task in execution is modified as follows: has been completed.
5. The method according to claim 1, wherein in step 6, the migration report includes a file path, a file name, a modified code line number, and a code modification suggestion.
CN202310977369.7A 2023-08-04 2023-08-04 Monitoring method for executable file in source code migration process Pending CN117009178A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310977369.7A CN117009178A (en) 2023-08-04 2023-08-04 Monitoring method for executable file in source code migration process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310977369.7A CN117009178A (en) 2023-08-04 2023-08-04 Monitoring method for executable file in source code migration process

Publications (1)

Publication Number Publication Date
CN117009178A true CN117009178A (en) 2023-11-07

Family

ID=88568620

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310977369.7A Pending CN117009178A (en) 2023-08-04 2023-08-04 Monitoring method for executable file in source code migration process

Country Status (1)

Country Link
CN (1) CN117009178A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120256067A (en) * 2025-06-05 2025-07-04 麒麟软件有限公司 Code migration system based on multi-system isolation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120256067A (en) * 2025-06-05 2025-07-04 麒麟软件有限公司 Code migration system based on multi-system isolation

Similar Documents

Publication Publication Date Title
US9170573B2 (en) Method and system for updating tuning parameters of a controller
CN111667061B (en) Deep learning framework transplanting and optimizing method and system based on target many-core
CN114816417B (en) Cross compiling method, device, computing equipment and storage medium
CN107015840B (en) Quick execution method and quick execution system of resolver
CN104820393B (en) One kind is based on PLC ladder diagram matrix compiling and interpreting methods
KR20210120937A (en) Mode switching method, apparatus, electronic device, computer storage medium and computer program product in deep learning framework
EP4330810A1 (en) Code injection from natural language derived intent
CN111857694A (en) A code editing method and device based on cloud native program development and deployment
CN111221841A (en) Real-time processing method and device based on big data
CN117009178A (en) Monitoring method for executable file in source code migration process
CN117196015A (en) Operator execution method, device, electronic equipment and storage medium
US20190057125A1 (en) System and method for managing log data
Yang et al. M2coder: A fully automated translator from matlab m-functions to c/c++ codes for acs motion controllers
JP3318051B2 (en) Translation processing method
CN119761406A (en) Method for generating multi-agent collaboration system through computing power of intelligent computing center
CN115048184B (en) A method and device for optimizing execution of interpreter instructions
CN118349238A (en) Optimization method and system for instant compiling time consumption of deep learning model
CN117591087A (en) An efficient formal code construction method for complex data processing requirements
CN115237390A (en) Relay protection device logic diagram code generation method and device and storage medium
CN117033422A (en) A code query method and device
CN111596923B (en) Haxe static link library construction method and device and electronic equipment
CN113031952B (en) Method, device and storage medium for determining execution code of deep learning model
KR20240044067A (en) Method for Advancing Acceleration Inference Model
Fouladi et al. Outsourcing everyday jobs to thousands of cloud functions with gg
Li Software Framework for Embedded Neural Networks

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination