CN117270862A - Software pluggable method, device, equipment and medium based on dynamic compiling - Google Patents

Software pluggable method, device, equipment and medium based on dynamic compiling Download PDF

Info

Publication number
CN117270862A
CN117270862A CN202311122469.8A CN202311122469A CN117270862A CN 117270862 A CN117270862 A CN 117270862A CN 202311122469 A CN202311122469 A CN 202311122469A CN 117270862 A CN117270862 A CN 117270862A
Authority
CN
China
Prior art keywords
target
software development
function
development function
compiling
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
CN202311122469.8A
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.)
China Southern Power Grid Digital Platform Technology Guangdong Co ltd
Original Assignee
China Southern Power Grid Digital Platform Technology Guangdong 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 China Southern Power Grid Digital Platform Technology Guangdong Co ltd filed Critical China Southern Power Grid Digital Platform Technology Guangdong Co ltd
Publication of CN117270862A publication Critical patent/CN117270862A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management

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)

Abstract

The invention discloses a method, a device, equipment and a medium for plugging software based on dynamic compiling. The method is characterized by comprising the following steps: determining a target software development function to be connected; connecting a target software development function through a pluggable interface of a target development kit; and dynamically compiling the target software development function through a dynamic compiling engine of the target development kit, and running the target software development function. The pluggable software development function is realized, the expandability of the developed software is improved, the tight coupling between modules can be avoided, and the maintainability and the stability of the software are improved.

Description

Software pluggable method, device, equipment and medium based on dynamic compiling
Technical Field
The present invention relates to the field of software development, and in particular, to a method, an apparatus, a device, and a medium for pluggable software based on dynamic compilation.
Background
When JSSDK (JavaScript Software Development Kit) software development is performed at present, the software requirement is determined during the software development, a development framework is constructed according to the software requirement, different functional modules are developed aiming at different software functions, and finally the software development is completed; however, during the maintenance of the software, when the software is subjected to new requirements and application scenarios, redesign and development are required, and due to the increased module functions, the coupling degree of the modules is too high and the codes are redundant, so that the maintenance cost is increased. In the prior art, software is usually re-developed, and the software development cost is too high.
Disclosure of Invention
The invention provides a method, a device, equipment and a medium for plugging software based on dynamic compiling, which are used for realizing the improvement of the efficiency of software development.
According to an aspect of the present invention, there is provided a software pluggable method based on dynamic compilation, including:
determining a target software development function to be connected;
connecting a target software development function through a pluggable interface of a target development kit;
dynamically compiling the target software development function through a dynamic compiling engine of the target development kit, and running the target software development function
According to another aspect of the present invention, there is provided a dynamically compiled based software pluggable device, comprising:
the function acquisition module is used for determining a target software development function to be connected;
the function loading module is used for connecting the target software development function through a pluggable interface of the target development kit;
and the function realization module is used for dynamically compiling the target software development function through a dynamic compiling engine of the target development kit and running the target software development function.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the dynamic compilation-based software pluggable method of any of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement the dynamic compilation-based software pluggable method according to any embodiment of the present invention when executed.
According to the technical scheme, the target software development function to be connected is determined, and when the software function is determined to be needed, the connected target software development function is selected, so that the development is not needed again, and the development efficiency is improved; the pluggable interface of the target development tool kit is used for connecting the target software development function, and the pluggable interface can be used for freely connecting the software function, so that the development amount of software is reduced; and dynamically compiling the target software development function through a dynamic compiling engine of the target development kit, and running the target software development function. The pluggable software development function is realized, the expandability of the developed software is improved, and the technical problems of low software development efficiency and over-high coupling degree of modules are solved. The tight coupling between the modules can be avoided, and the maintainability and stability of the software are improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a software pluggable method based on dynamic compilation according to a first embodiment of the present invention;
FIG. 2 is a flowchart of another software pluggable method based on dynamic compilation according to the second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a software pluggable device based on dynamic compiling according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device implementing a dynamically compiled software pluggable method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
Example 1
Fig. 1 is a flowchart of a method for dynamically compiling a software pluggable device according to an embodiment of the present invention, where the method may be performed by the dynamically compiling a software pluggable device according to a different application scenario, and the dynamically compiling a software pluggable device may be implemented in the form of hardware and/or software, and the dynamically compiling a software pluggable device may be configured in an electronic device. As shown in fig. 1, the method includes:
s110, determining a target software development function to be connected.
The target software development function may be a developed software function required in software development and maintenance.
Specifically, in the process of software development and maintenance, a target software development function to be connected is determined according to the software function required by software.
S120, connecting the target software development function through a pluggable interface of the target development kit.
The target development tool kit can be a tool kit for realizing pluggable functions in software development. Optionally, a target development kit with a pluggable development function is defined in the software, so that the software development function can be freely connected or canceled.
The pluggable interface may be an interface of a software development function capable of connecting and disconnecting.
Specifically, a target software development kit with a pluggable function is integrated in the software, and the pluggable result provided by the target software development kit is used for connecting the target software development function.
S130, dynamically compiling the target software development function through a dynamic compiling engine of the target development kit, and running the target software development function.
Wherein the dynamic compilation engine may be a tool defining dynamics and compilation in a target development kit; the dynamic compilation engine may convert code into executable machine code. It should be noted that the dynamic compiling engine may be compiled during the running process of the program language.
Specifically, the target software development function is dynamically compiled by a dynamic compiling engine defined in the target development kit, so that the target software development function is operated.
Optionally, in another optional embodiment of the present invention, before the determining the target software development function to be connected, the method further includes: a pluggable interface and a dynamic compilation engine of the target development kit are defined.
Specifically, in the software development process, a pluggable interface and a dynamic compiling engine of a target development kit are defined, and the pluggable interface and the dynamic compiling engine of the target development kit are integrated.
According to the technical scheme, the target software development function to be connected is determined, and when the software function is determined to be needed, the connected target software development function is selected, so that the development is not needed again, and the development efficiency is improved; the pluggable interface of the target development tool kit is used for connecting the target software development function, and the pluggable interface can be used for freely connecting the software function, so that the development amount of software is reduced; and dynamically compiling the target software development function through a dynamic compiling engine of the target development kit, and running the target software development function. The pluggable software development function is realized, the expandability of the developed software is improved, and the technical problems of low software development efficiency and over-high coupling degree of modules are solved. The tight coupling between the modules can be avoided, and the maintainability and stability of the software are improved.
Example two
Fig. 2 is a flowchart of another software pluggable method based on dynamic compiling according to the second embodiment of the present invention, and the relationship between the present embodiment and the above embodiment is a specific method for running the target software development function. As shown in fig. 2, the software pluggable method based on dynamic compiling includes:
s210, determining a target software development function to be connected.
S220, connecting the target software development function through a pluggable interface of the target development kit.
S230, dynamically compiling source codes of the target software development functions through a dynamic compiling engine of a target development kit to obtain machine codes of the target software development functions, loading the machine codes into an operation memory, and operating the target software development functions.
Wherein the source code may be a text file in a computer program language constituting the target software development function.
The machine code may be command codes provided to a central processor of a computer for execution.
Specifically, a central processing unit of a computer calls a dynamic compiling engine of a target development tool package to dynamically compile a source code of the target software development function to obtain a machine code of the target software development function, and the machine code is loaded into an operation memory to operate the target software development function.
Optionally, in another optional embodiment of the present invention, before the dynamically compiling the source code of the target software development function by the dynamic compiling engine of the target development kit, the method further includes:
registering and loading the target software development function through a routing mechanism of a dynamic compiling engine.
The routing mechanism may be a software development function that determines to be dynamically compiled during the dynamic compilation process.
Specifically, the target software development function to be compiled is registered in a routing mechanism of the dynamic compiling engine, and the registered target software development function is loaded and compiled.
Optionally, in another optional embodiment of the present invention, the registering and loading the target software development function through a routing mechanism of a dynamic compiling engine includes:
registering the target software development function in a preset registry through a routing mechanism of a dynamic compiling engine to obtain a first target registry of the target software development function; and loading the target software development function according to the first target registry.
The registry may be a mapping table of a routing mechanism preset in the dynamic compiling engine. Registering the target software development function in the registry, and directionally loading the target software development function by reading the registry of the registered target software development function.
Wherein the first target registry may be a registry that completes registration at a routing mechanism of the dynamic compilation engine.
Specifically, in the routing mechanism of the dynamic compiling engine, a first target registry of the target software development function is obtained by registering a target software developer in a preset registry, the target software development function is determined according to the first target registry, and the target software development function is loaded through the dynamic compiling engine.
Optionally, in another optional embodiment of the present invention, after the dynamically compiling the target software development function by the dynamic compiling engine of the target development kit and running the target software development function, the method further includes:
switching the target software development function into a substitute software development function through a pluggable interface of a target development kit; updating the first target registry according to the substitute software development function through a routing mechanism of the dynamic compiling engine to obtain a second target registry; and loading the alternative software development function according to the second target registry.
The substitute software development function may be a software development function updated through a pluggable interface.
Wherein the second target registry may be a registry that completes the registration of the alternative software development function at the routing mechanism of the dynamic compilation engine.
Specifically, the target software development function is disconnected through the pluggable interface of the target development kit, a new alternative software development function is connected, registration is performed in the registry according to the alternative software development function through the routing mechanism of the dynamic compiling engine, and the first target registry is updated to obtain a second target registry. And loading the alternative software development function according to the second target registry.
Optionally, in another optional embodiment of the present invention, after said loading the alternative software development function according to the second target registry, the method further includes:
analyzing the source code of the substitute software development function to generate a machine code of the substitute software development function; and loading the machine code into an operation memory to realize a substitute software development function.
Specifically, a central processing unit of a computer calls a dynamic compiling engine of a target development kit to dynamically compile a source code of the substitute software development function to obtain a machine code of the substitute software development function, and the machine code is loaded into an operation memory to operate the substitute software development function.
According to the technical scheme, the target software development function to be connected is determined, and when the software function is determined to be needed, the connected target software development function is selected, so that the development is not needed again, and the development efficiency is improved; the pluggable interface of the target development tool kit is used for connecting the target software development function, and the pluggable interface can be used for freely connecting the software function, so that the development amount of software is reduced; and dynamically compiling the target software development function through a dynamic compiling engine of the target development kit, and running the target software development function. The pluggable software development function is realized, the expandability of the developed software is improved, and the technical problems of low software development efficiency and over-high coupling degree of modules are solved. The tight coupling between the modules can be avoided, and the maintainability and stability of the software are improved.
Example III
Fig. 3 is a schematic structural diagram of a software pluggable device based on dynamic compiling according to a third embodiment of the present invention. As shown in fig. 3, the apparatus includes: a function acquisition module 310, a function loading module 320, and a function implementation module 330, wherein,
the function acquisition module is used for determining a target software development function to be connected;
the function loading module is used for connecting the target software development function through a pluggable interface of the target development kit;
and the function realization module is used for dynamically compiling the target software development function through a dynamic compiling engine of the target development kit and running the target software development function.
According to the technical scheme, the target software development function to be connected is determined, and when the software function is determined to be needed, the connected target software development function is selected, so that the development is not needed again, and the development efficiency is improved; the pluggable interface of the target development tool kit is used for connecting the target software development function, and the pluggable interface can be used for freely connecting the software function, so that the development amount of software is reduced; and dynamically compiling the target software development function through a dynamic compiling engine of the target development kit, and running the target software development function. The pluggable software development function is realized, the expandability of the developed software is improved, and the technical problems of low software development efficiency and over-high coupling degree of modules are solved. The tight coupling between the modules can be avoided, and the maintainability and stability of the software are improved.
Optionally, the device further comprises a software design module; wherein:
the software design module is used for defining a pluggable interface and a dynamic compiling engine of the target development tool package.
Optionally, the function implementation module is specifically configured to:
dynamically compiling source codes of the target software development functions through a dynamic compiling engine of a target development kit to obtain machine codes of the target software development functions;
and loading the machine code into an operation memory, and operating a target software development function.
Optionally, the device further comprises a function compiling module; wherein:
the function compiling module is used for registering and loading the target software development function through a routing mechanism of the dynamic compiling engine.
Optionally, the function compiling module is specifically configured to:
registering the target software development function in a preset registry through a routing mechanism of a dynamic compiling engine to obtain a first target registry of the target software development function;
and loading the target software development function according to the first target registry.
Optionally, the device further comprises a registry updating module; wherein:
the registry updating module is used for switching the target software development function into a substitute software development function through a pluggable interface of a target development kit;
updating the first target registry according to the substitute software development function through a routing mechanism of the dynamic compiling engine to obtain a second target registry;
and loading the alternative software development function according to the second target registry.
Optionally, the apparatus further comprises a function substitution module; wherein:
the function substitution module is used for analyzing the source code of the substitution software development function and generating the machine code of the substitution software development function;
optionally, the function implementation module is specifically further configured to:
and loading the machine code into an operation memory to realize a substitute software development function.
The software pluggable device based on dynamic compilation provided by the embodiment of the invention can execute the software pluggable method based on dynamic compilation provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 4 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a dynamically compiled based software pluggable method.
In some embodiments, the dynamically compiled based software pluggable method may be implemented as a computer program tangibly embodied on a computer readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more of the steps of the dynamically compiled based software pluggable method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform a dynamically compiled based software pluggable method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
Example five
The present embodiment provides a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the steps of a dynamic compilation-based software pluggable method as provided by any embodiment of the present invention, the method comprising:
determining a target software development function to be connected;
connecting a target software development function through a pluggable interface of a target development kit;
and dynamically compiling the target software development function through a dynamic compiling engine of the target development kit, and running the target software development function.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium may be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
It will be appreciated by those of ordinary skill in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be centralized on a single computing device, or distributed over a network of computing devices, or they may alternatively be implemented in program code executable by a computer device, such that they are stored in a memory device and executed by the computing device, or they may be separately fabricated as individual integrated circuit modules, or multiple modules or steps within them may be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for dynamically compiling based software pluggable, comprising:
determining a target software development function to be connected;
connecting a target software development function through a pluggable interface of a target development kit;
and dynamically compiling the target software development function through a dynamic compiling engine of the target development kit, and running the target software development function.
2. The method of claim 1, further comprising, prior to said determining the target software development function to be connected:
a pluggable interface and a dynamic compilation engine of the target development kit are defined.
3. The method of claim 1, wherein the dynamically compiling the target software development function by the dynamic compiling engine of the target development kit, running the target software development function, comprises:
dynamically compiling source codes of the target software development functions through a dynamic compiling engine of a target development kit to obtain machine codes of the target software development functions;
and loading the machine code into an operation memory, and operating a target software development function.
4. The method of claim 3, further comprising, prior to dynamically compiling source code for the target software development function by a dynamic compilation engine of a target development kit:
registering and loading the target software development function through a routing mechanism of a dynamic compiling engine.
5. The method of claim 4, wherein registering and loading the target software development function via a routing mechanism of a dynamic compilation engine comprises:
registering the target software development function in a preset registry through a routing mechanism of a dynamic compiling engine to obtain a first target registry of the target software development function;
and loading the target software development function according to the first target registry.
6. The method of claim 5, wherein after the target software development function is dynamically compiled by the dynamic compilation engine of the target development kit and the target software development function is run, further comprising:
switching the target software development function into a substitute software development function through a pluggable interface of a target development kit;
updating the first target registry according to the substitute software development function through a routing mechanism of the dynamic compiling engine to obtain a second target registry;
and loading the alternative software development function according to the second target registry.
7. The method of claim 6, further comprising, after said loading said alternate software development function according to said second target registry:
analyzing the source code of the substitute software development function to generate a machine code of the substitute software development function;
and loading the machine code into an operation memory to realize a substitute software development function.
8. A dynamically compiled based software pluggable device, comprising:
the function acquisition module is used for determining a target software development function to be connected;
the function loading module is used for connecting the target software development function through a pluggable interface of the target development kit;
and the function realization module is used for dynamically compiling the target software development function through a dynamic compiling engine of the target development kit and running the target software development function.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the dynamic compilation-based software pluggable method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to implement the dynamic compilation-based software pluggable method of any one of claims 1-7 when executed.
CN202311122469.8A 2023-08-30 2023-09-01 Software pluggable method, device, equipment and medium based on dynamic compiling Pending CN117270862A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202311106914 2023-08-30
CN2023111069141 2023-08-30

Publications (1)

Publication Number Publication Date
CN117270862A true CN117270862A (en) 2023-12-22

Family

ID=89209593

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311122469.8A Pending CN117270862A (en) 2023-08-30 2023-09-01 Software pluggable method, device, equipment and medium based on dynamic compiling

Country Status (1)

Country Link
CN (1) CN117270862A (en)

Similar Documents

Publication Publication Date Title
CN113342345A (en) Operator fusion method and device of deep learning framework
CN114816393B (en) Information generation method, device, equipment and storage medium
CN112860356B (en) API call control method and device, electronic equipment and storage medium
CN111078230A (en) Code generation method and device
CN113641677A (en) Data processing method and device, electronic equipment and storage medium
CN112015468A (en) Interface document processing method and device, electronic equipment and storage medium
CN113254043A (en) Web front-end project processing method and device, electronic equipment and storage medium
CN115509522A (en) Interface arranging method and system for low-code scene and electronic equipment
CN114443076A (en) Mirror image construction method, device, equipment and storage medium
CN116302218B (en) Function information adding method, device, equipment and storage medium
CN116932147A (en) Streaming job processing method and device, electronic equipment and medium
CN111857825A (en) Instruction execution method and device, electronic equipment and computer-readable storage medium
CN117270862A (en) Software pluggable method, device, equipment and medium based on dynamic compiling
CN113691403A (en) Topological node configuration method, related device and computer program product
CN112596729A (en) Target application interface generation method and device, readable medium and electronic equipment
CN114416199B (en) Windows program running method and device, electronic equipment and storage medium
CN113010182B (en) Method and device for generating upgrade file and electronic equipment
CN115563183B (en) Query method, query device and program product
CN117411939A (en) Serialized data analysis method, device, equipment and storage medium
CN117278648A (en) Protocol dynamic adaptation method, device, electronic equipment and storage medium
CN118132109A (en) Method, device, equipment and medium for issuing software development kit
CN118394342A (en) Code running method, device, electronic equipment and storage medium
CN117608585A (en) Data storage method, device, equipment and medium
CN117234509A (en) Routing management method, device and equipment of front-end page and storage medium
CN116383284A (en) Data access method, device, equipment and storage medium

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