CN114860204A - Program processing method, program operating device, terminal, smart card and storage medium - Google Patents

Program processing method, program operating device, terminal, smart card and storage medium Download PDF

Info

Publication number
CN114860204A
CN114860204A CN202210458950.3A CN202210458950A CN114860204A CN 114860204 A CN114860204 A CN 114860204A CN 202210458950 A CN202210458950 A CN 202210458950A CN 114860204 A CN114860204 A CN 114860204A
Authority
CN
China
Prior art keywords
program
operating system
executable
application
position number
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
CN202210458950.3A
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.)
Hengbao Co Ltd
Original Assignee
Hengbao 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 Hengbao Co Ltd filed Critical Hengbao Co Ltd
Priority to CN202210458950.3A priority Critical patent/CN114860204A/en
Publication of CN114860204A publication Critical patent/CN114860204A/en
Priority to PCT/CN2023/090741 priority patent/WO2023208012A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • 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
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/067Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
    • G06K19/07Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Stored Programmes (AREA)

Abstract

Compared with the prior scheme that a special storage space needs to be opened in the second operating system to store and realize the function codes of the program link, the code storage resources of the second operating system are saved, and the integration or expansion of other more functions in the limited resources by the second operating system is facilitated.

Description

Program processing method, program operating device, terminal, smart card and storage medium
Technical Field
The application relates to the technical field of computers, in particular to a program processing and running method, a program processing and running device, a terminal, a smart card and a storage medium.
Background
In the application program development technology, a corresponding program can be written by using a programming language for functions to be realized by an application program, and then the program is compiled into instruction codes which can be executed by a target operating environment through a compiling tool. The result obtained by compiling by the compiling tool is often not a program which can be directly run by the target running environment, and the compiled program needs to be sent to the target running environment and linked with the target running environment so as to obtain the program which can be executed by the target running environment.
Taking a smart card product as an example, a developer writes a corresponding program in a terminal system according to a function that needs to be implemented by a smart card application program, then compiles the program in the terminal system, sends the compiled program to a smart card, and the smart card links the program with its own system after acquiring the compiled program to generate an executable program. For the smart card product, the chip resource of the smart card product is limited, the link process is executed by the smart card, a large amount of code storage space is consumed, and the integration or expansion of other functions on the smart card product is not very facilitated.
Disclosure of Invention
An object of the embodiments of the present application is to provide a program processing method, a program running method, a program processing apparatus, a program running apparatus, a terminal, a smart card, and a storage medium, so as to solve the problem that in the prior art, a system running a program needs to create a special code storage space to store function codes for implementing a program linking process because the program linking process and a program running environment are located in the same system, and a large amount of code storage space is wasted for the system, which is not beneficial to the system to integrate or extend other functions.
The embodiment of the application provides a program processing method, which is applied to a first operating system and comprises the following steps:
compiling the source code of the application program to obtain an application program component which can be identified by a second operating system;
linking the application program component with the second operating system to generate a program executable by the second operating system;
and sending the executable program to the second operating system.
In the implementation process, the application program component and the second operating system are linked in the first operating system to obtain the program executable by the second operating system, that is, the second operating system can directly receive the executable program, and compared with the existing scheme that a special storage space needs to be created in the second operating system to store the function code for implementing the program linkage, the code storage resource of the second operating system is saved, and the integration or expansion of other more functions in the limited resource by the second operating system is facilitated.
Further, the application program component comprises a program identifier of a target program to be called; the target program is a program stored in the second operating system;
the linking the application component with the second operating system to generate a program executable by the second operating system includes:
determining a position number corresponding to a program identifier according to a corresponding relation between the pre-stored program identifier and the position number; the position number is used for representing the storage position of the corresponding target program in the second operating system;
and replacing the program identification with the position number to generate a program executable by the second operating system.
In the implementation process, the code corresponding to the target program is not required to be completely introduced into the application program assembly, but the program identifier of the target program in the application program assembly is replaced by the position number, so that the executable program of the second operating system is obtained, the size of the executable program sent to the second operating system can be reduced, and the transmission time for the first operating system to transmit the executable program to the second operating system can be reduced.
Further, the location number comprises a single-dimensional logical location number; the single-dimensional logic position number is used for representing a logic position serial number of the target program on a storage space of the second operating system; a plurality of programs are stored in the storage space in sequence;
or the like, or, alternatively,
the location number comprises a multidimensional logical location number; the multidimensional logic position number is used for representing a position serial number of a program package to which the target program belongs on a storage space of the second operating system and a position serial number of the target program in the program package; a plurality of program packages are stored in the storage space in sequence; the program package comprises a plurality of programs which are arranged in sequence.
In the implementation process, on one hand, a plurality of programs are sequentially stored in the storage space of the second operating system, and at this time, the single-dimensional logic position number can be used as a unique identifier for calling a target program in the second operating system; on the other hand, for the case that the interface hierarchy of the program in the second operating system is complex, a plurality of program packages may be stored in sequence in the storage space of the second operating system, each program package including a plurality of programs arranged in sequence, and at this time, the multidimensional logical position number may be used as a unique identifier for calling the target program in the second operating system.
Further, before the determining, according to the correspondence between the pre-stored program identifier and the location number, the location number corresponding to the program identifier, the method further includes:
receiving the corresponding relation between the program identification and the position number sent by the second operating system;
and storing the corresponding relation between the program identification and the position number.
In the implementation process, the first operating system can receive and store the corresponding relationship between the program identifier and the position number from the second operating system, and can be applied to a scene in which the corresponding relationship is not preset by the first operating system, so that the universality of the scheme is improved.
The embodiment of the application further provides a program running method, which is applied to a second operating system, and the method comprises the following steps:
receiving a program executable by the second operating system sent by the first operating system; after the first operating system compiles an application program source code to obtain an application program component which can be identified by the second operating system, the program links the application program component and the second operating system to obtain a program;
and running the executable program.
In the implementation process, the first operating system completes the program link, that is, the second operating system can directly receive the executable program, and compared with the existing scheme in which a special storage space needs to be created in the second operating system to store the function code for implementing the program link, the code storage resource of the second operating system is saved, and the second operating system is more beneficial to integrating or expanding other more functions in the limited resource.
An embodiment of the present application further provides a program processing apparatus, applied to a first operating system, including:
the compiling module is used for compiling the source code of the application program to obtain an application program component which can be identified by the second operating system;
the link module is used for linking the application program assembly with a second operating system and generating a program executable by the second operating system;
and the sending module is used for sending the executable program to the second operating system.
An embodiment of the present application further provides a program running apparatus, which is applied to a second operating system, and includes:
a receiving module, configured to receive a program executable by the second operating system sent by the first operating system; after the first operating system compiles an application program source code to obtain an application program component which can be identified by the second operating system, the program links the application program component and the second operating system to obtain a program;
and the running module is used for running the executable program.
The embodiment of the present application further provides a terminal, which includes a first operating system, where the first operating system includes a first processor and a second memory, where a first computer program is stored in the first memory, and the first processor executes the first computer program, so as to implement any one of the above program processing methods.
The embodiment of the present application further provides a smart card, which includes a second operating system, where the second operating system includes a second processor and a second memory, where a second computer program is stored in the second memory, and the second processor executes the second computer program, so as to implement any one of the above program running methods.
Embodiments of the present application further provide a computer-readable storage medium, which stores a third computer program, and when the third computer program is executed by at least one processor, the third computer program is configured to implement any one of the methods described above.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic flowchart of a program processing method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a program running method according to an embodiment of the present application;
fig. 3 is a schematic diagram illustrating a program stored in a second operating system according to a second embodiment of the present application;
fig. 4 is a flowchart illustrating a program processing method according to a second embodiment of the present application;
fig. 5 is a schematic structural diagram of a program processing apparatus according to a third embodiment of the present application;
fig. 6 is a schematic structural diagram of a program execution device according to a third embodiment of the present application;
fig. 7 is a schematic structural diagram of a terminal according to a fourth embodiment of the present application;
fig. 8 is a schematic structural diagram of a smart card according to a fourth embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the descriptions relating to "first", "second", etc. in the embodiments of the present invention are only for descriptive purposes and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
In the description of the present invention, it should be understood that the numerical references before the steps do not identify the order of performing the steps, but merely serve to facilitate the description of the present invention and to distinguish each step, and thus should not be construed as limiting the present invention.
Various embodiments will be provided to specifically describe the program processing, the running method, the device, the terminal, the smart card and the storage medium.
The first embodiment is as follows:
in order to solve the problem that in the prior art, because the program linking process and the program running environment are located in the same system, a system running the program needs to create a special code storage space to store function codes for realizing the program linking process, and for the system, a large amount of code storage space is wasted, which is not beneficial to the integration or expansion of other functions of the system, the embodiment of the application provides a program processing method.
The program processing method provided by the embodiment of the present application is applied to a first operating system, where the first operating system includes but is not limited to a system in a terminal such as a PC (Personal Computer), a mobile phone, a tablet Computer, and a notebook Computer.
Referring to fig. 1, a program processing method provided in an embodiment of the present application may include the following steps:
s101: and compiling the source code of the application program to obtain an application program component which can be identified by the second operating system.
In the process of developing the application program, a developer may write corresponding implementation code according to the function that the application program in the second operating system needs to implement, where the implementation code is the source code of the application program mentioned in step S101.
Specifically, a developer may write corresponding implementation codes for functions that need to be implemented by an application program using different programming languages. For example, the implementation code is written in C language, or JAVA language. And compiling the implementation codes into application program components which can be identified by the target running environment through a compiling tool corresponding to each language. The target operating environment in this embodiment is an operating environment of a compiled program in a second operating system, where the second operating system in this embodiment may be a smart card operating system, and at this time, the target operating environment is a machine instruction operating environment related to a smart card chip, and the corresponding instruction code may be an X86 instruction, an ARM instruction, or the like.
S102: and linking the application program component with the second operating system to generate a program executable by the second operating system.
The application program component in the embodiment of the application comprises a program identifier of a target program to be called; the target program is a program stored in the second operating system.
In step S102, a position number corresponding to the program identifier may be determined according to a pre-stored correspondence between the program identifier and the position number; the position number is used for representing the storage position of the corresponding target program in the second operating system; and replacing the program identification in the application program assembly with the corresponding position number to obtain the program executable by the second operating system.
For the second operating system supporting the virtual machine, when the application program component is linked with the second operating system, a specific address of the target program is not needed, only a reference which can be explained by the second operating system is needed to complete the link, and because the actual physical address of the program in the operating system is usually difficult to determine in actual application, the position number can be a logical position number which is not the actual physical address of the target program in the second operating system and represents the logical sequence of the position where the target program is stored in the second operating system. Of course, for an application scenario where the actual physical address can be obtained, the location number may also represent the actual physical address of the target program in the second operating system.
In a first alternative embodiment, a plurality of programs are sequentially stored in the storage space of the second operating system, and the logical position numbers include a single-dimensional logical position number. The single-dimensional logical position number is used for representing the logical position serial number of the target program on the storage space of the second operating system. For example, the single-dimensional logical location number "1" indicates that the target program is located at the 1 st location on the storage space of the second operating system.
In a second optional implementation manner, a plurality of program packages are sequentially stored in the storage space of the second operating system, each program package includes a plurality of sequentially arranged programs, and the logic position number includes a multidimensional logic position number. The multidimensional logic position number is used for representing a logic position serial number of a program package of the target program on a storage space of the second operating system and a logic position serial number of the target program in the program package. For example, the multidimensional logical location number "2-1" indicates that the target program is the 1 st program in the 2 nd package.
It is understood that the package identifier may be any identifier that can indicate the unique identity of the package, such as the name of the package. The program identifier may be any identifier that can represent the unique identity of the program, such as the name of the program (function) of the target program (target function) that needs to be called in the application component. When the interface functions in the object-oriented programming are identical, the interface functions can be distinguished according to the class names of the functions.
It will be appreciated that in some embodiments, the program called in the application component may consist of only the target program located in the second operating system, and at this time, replacing the program identification of the target program in the application component with the corresponding location number may result in the program executable by the second operating system.
In some other embodiments, the program called in the application component may include, in addition to the target program located in the second operating system, other programs located outside the second operating system, for example, a local program in the first operating system may need to be called. At this time, the program identifier of the target program in the application program component may be replaced with the corresponding location number to obtain a replaced application program component, and then the replaced application program component and the local program are linked and assembled to obtain a program executable by the second operating system.
S103: and sending the executable program to a second operating system.
It should be noted that the location number may indicate a storage location of the target program in the second operating system, and the second operating system may call the corresponding target program according to the location number when running the received executable program.
It will be appreciated that a uniform, generic program interface specification may be agreed upon for the second operating system. The program interface specification includes a corresponding relationship between the respective logical position numbers corresponding to the programs in the second operating system and the respective program identifiers, and the first operating system may store the corresponding relationship in advance.
In some embodiments, the second operating system may include other user-defined programs, referred to as programs downloaded after the second operating system, in addition to the programs specified in the program interface specification. After acquiring the later-downloaded program, the second operating system may generate a correspondence between the program identifier and the logical position number for the later-downloaded program.
Before determining the logical position number corresponding to the program identifier according to the pre-stored corresponding relationship between the program identifier and the logical position number, the first operating system may further receive the corresponding relationship between the program identifier and the logical position number sent by the second operating system, and store the corresponding relationship between the program identifier and the logical position number. It should be noted that, in other embodiments, the second operating system may send the generated corresponding relationship between the program identifier and the logical position number to the first operating system after receiving a trigger instruction issued by the user.
For the embodiment in which the location number includes a multidimensional logical location number, the application component may further include a package identifier of a package to which the target program belongs, and before the first operating system receives the correspondence between the package identifier and the logical location number sent by the second operating system, the first operating system may also send the package identifier to the second operating system, and then receive a target correspondence corresponding to the package identifier and fed back by the second operating system; the target corresponding relation comprises: and the corresponding relation between the program identification of each program composing the program package and each logic position number. The first operating system can directly acquire the corresponding relation between each program and each logic position number in the program package to which the target program belongs through one-time information interaction with the second operating system, so that the first operating system can conveniently replace the program identification and the corresponding logic position number in the application program assembly according to the corresponding relation, and the linking efficiency is improved.
An embodiment of the present application further provides a program running method, which is applied to a second operating system, where the second operating system may be a smart card operating system, and please refer to fig. 2, where the method may include the following steps:
s201: receiving a program executable by a second operating system sent by a first operating system; and after the executable program is compiled from the first operating system to the application program source code to obtain an application program component which can be identified by the second operating system, the application program component and the second operating system are linked to obtain the executable program.
S202: the executable program is run.
Since the program received by the second operating system is a program that has completed linking with its own operating system, the received program can be directly run.
According to the above description, the first operating system needs to replace the program identifier of the target program in the application program assembly with the corresponding location number in the second operating system, for example, the logical location number mentioned in the above description, so as to obtain the corresponding executable program, and therefore, the executable program necessarily includes the location number.
In this embodiment, since the logical location number may represent a logical location number of the target program on the storage space of the second operating system, the second operating system may directly call the target program according to the logical location number. It should be noted that, in some other embodiments, the second operating system may also call the corresponding actual physical address to run the target program according to the correspondence between the pre-stored location number and the actual physical address.
Example two:
in order to better understand the solution provided by the present application, the embodiment of the present application uses the first operating system as a PC operating system, and uses the second operating system as a smart card operating system as an example to describe in detail the program processing method.
In the embodiment of the present application, a plurality of program packages are stored in a storage space of the smart card operating system, and a plurality of programs are sequentially arranged in each program package, specifically, as shown in fig. 3. For the program packages downloaded to the smart card operating system, the smart card operating system can generate a multidimensional logical position number table according to the arrangement condition of the program packages and the programs in the program packages, wherein the multidimensional logical position number table comprises multidimensional logical position numbers corresponding to the programs and the corresponding relation between the multidimensional logical position numbers and the program identifications. For the general program package in the industry which the smart card operating system needs to carry, the corresponding relation between the program identification and the multidimensional logic position number can be appointed through the interface specification, and the multidimensional logic position number corresponding to the program is used for replacing the program identification during the link, so that the link is completed.
The multidimensional logic position number is used for representing a logic position serial number of a program package of the target program on a storage space of the second operating system and a logic position serial number of the target program in the program package. That is, the multidimensional logical position number is composed of a logical position number of the program package to which the target program belongs on the storage space of the second operating system and a logical position number of the target program in the program package. For example, the multidimensional logical location number 0x00010005 may characterize the target program as the 5 th program of the 1 st package. Since the program packages and the programs in the program packages are arranged in the storage space of the second operating system in the logical sequence, the physical storage address where the target program is located can be found according to the multidimensional logical position number 0x 00010005.
Referring to fig. 4, a program processing method provided in an embodiment of the present application includes the following steps:
s401: and compiling the source code of the application program to obtain an application program component which can be identified by the second operating system.
The application program component in step S401 includes a program identifier of a target program that needs to be called and a package identifier of a package to which the target program belongs.
S402: and judging whether a target corresponding relation corresponding to the program package identification exists locally, if not, turning to S403, and if so, turning to S404.
The target correspondence in the embodiment of the present application includes: and the corresponding relation between the program identification of each program forming the program package and each multidimensional logical position number.
S403: and acquiring the target corresponding relation from the smart card operating system.
S404: and traversing and analyzing the program calling information in the application program component.
The program calling information in step S404 includes the program identifier of the target program located in the smart card operating system that needs to be called.
S405: and replacing the program identification of the target program in the application program component with the corresponding multi-dimensional logic position number.
S406: and judging whether the application program component is analyzed completely, if so, turning to S407, otherwise, turning to S404.
S407: and sending the generated program executable by the smart card operating system to the smart card operating system.
After the PC operating system finishes the replacement of the program identifier of the target program, the executable program of the smart card operating system can be obtained, and then the executable program is sent to the smart card operating system for running.
It should be noted that, in the smart card operating system, a general application program can be constructed through a programming language to run a virtual machine, and then, in the running environment constructed by the virtual machine, the calling of the target program is realized through the above relative reference (the reference of the program identifier is replaced by the reference of the logical position number), so as to achieve the purpose of running the application program.
For the smart card operating system, under the condition of lacking storage resources and CPU running performance, the program linkage is completed outside the smart card operating system, so that the smart card application program linkage can be efficiently completed to generate executable program data of the smart card operating system, the application program linkage process in the smart card operating system by using a large amount of code resources is avoided, the consumption of the smart card operating system on the storage resources is reduced, and the application program downloading performance is also improved.
Example three:
referring to fig. 5, an embodiment of the present application provides a program processing apparatus applied to a first operating system, including:
a compiling module 501, configured to compile an application source code to obtain an application component recognizable by the second operating system; a linking module 502, configured to link the application component with the second operating system, and generate a program executable by the second operating system; a sending module 503, configured to send the executable program to the second operating system.
In an exemplary embodiment, the application program component comprises a program identifier of a target program needing to be called; the target program is a program stored in the second operating system; the link module 502 is configured to determine a location number corresponding to the program identifier according to a pre-stored correspondence between the program identifier and the location number, replace the program identifier in the application component with the corresponding location number, and generate a program executable by the second operating system; the location number is used to characterize the storage location of the target program in the second operating system.
In an exemplary embodiment, the location number includes a single-dimensional logical location number, where the single-dimensional logical location number is used to characterize a logical location number of the target program on a storage space of the second operating system, and the storage space stores a plurality of programs; or the logic position number comprises a multidimensional logic position number, the multidimensional logic position number is used for representing a logic position serial number of a program package to which the target program belongs on a storage space of the second operating system, and a logic position serial number of the target program in the program package, a plurality of program packages are stored in the storage space, and the program packages comprise a plurality of programs which are arranged in sequence.
In an exemplary embodiment, the program processing apparatus further includes a receiving module and a storage module, where the receiving module is configured to receive a corresponding relationship between the program identifier and the location number sent by the second operating system before the linking module 502 determines, according to the pre-stored corresponding relationship between the program identifier and the location number, the location number corresponding to the program identifier; the storage module is used for storing the corresponding relation between the program identification and the position number.
In an exemplary embodiment, the application component further includes a package identifier of a package to which the target program belongs, when the location number includes a multidimensional logic location number, the sending module 503 is further configured to send the package identifier to the second operating system, and the receiving module is configured to receive a target corresponding relationship corresponding to the package identifier, which is fed back by the second operating system according to the package identifier; the target corresponding relation comprises: and the corresponding relation between the program identification of each program forming the program package and each position number.
Referring to fig. 6, an embodiment of the present application further provides a program running apparatus applied to a second operating system, including:
a receiving module 601, configured to receive a program executable by a second operating system sent by a first operating system; the executable program is obtained by compiling the source code of the application program by the first operating system to obtain an application program component which can be identified by the second operating system, and then linking the application program component with the second operating system; an execution module 602 is configured to execute the executable program.
It should be noted that, in the embodiment of the present application, the first operating system may be a terminal operating system, and the second operating system may be a smart card operating system.
It should be understood that, for the sake of brevity, some of the contents described in the first embodiment and the second embodiment are not repeated in this embodiment.
Example four:
based on the same inventive concept, an embodiment of the present application provides a terminal, please refer to fig. 7, which includes a first operating system 70, where the first operating system 70 includes a first processor 701 and a first memory 702, a first computer program is stored in the first memory 702, and the first processor 701 executes the first computer program to implement the steps of the method in the first embodiment or the second embodiment, which are not described herein again.
It will be appreciated that the configuration shown in fig. 7 is merely illustrative and that the terminal may also include more or fewer components than shown in fig. 7 or have a different configuration than shown in fig. 7.
An embodiment of the present application further provides a smart card, please refer to fig. 8, which includes a second operating system 80, where the second operating system 80 includes a second processor 801 and a second memory 802, a second computer program is stored in the second memory 802, and the second processor 801 executes the second computer program to implement the steps of the method in the first embodiment or the second embodiment, which are not described herein again.
The processor in the embodiment of the present application may be an integrated circuit chip having signal processing capability. The processor may be a general-purpose processor including a Central Processing Unit (CPU), a Network Processor (NP), etc.; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. Which may implement or perform the various methods, steps, and logic blocks disclosed in the embodiments of the present application.
The memory may include, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read Only Memory (PROM), erasable read only memory (EPROM), electrically erasable read only memory (EEPROM), and the like.
The present embodiment further provides a computer-readable storage medium, such as a floppy disk, an optical disk, a hard disk, a flash memory, a U-disk, a Secure Digital (SD) card, a multimedia data (MMC) card, etc., where one or more programs for implementing the above steps are stored, and the one or more programs can be executed by one or more processors to implement the steps of the method in the above embodiments, which are not described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A program processing method applied to a first operating system, the method comprising:
compiling the source code of the application program to obtain an application program component which can be identified by a second operating system;
linking the application program component with the second operating system to generate a program executable by the second operating system;
and sending the executable program to the second operating system.
2. The program processing method according to claim 1, wherein the application program component includes a program identifier of a target program to be called; the target program is a program stored in the second operating system;
the linking the application component with the second operating system to generate a program executable by the second operating system includes:
determining a position number corresponding to a program identifier according to a corresponding relation between the pre-stored program identifier and the position number; the position number is used for representing the storage position of the corresponding target program in the second operating system;
and replacing the program identification in the application program assembly with the position number to generate a program executable by the second operating system.
3. The program processing method of claim 2, wherein the position number includes a single-dimensional logical position number; the single-dimensional logic position number is used for representing a logic position serial number of the target program on a storage space of the second operating system; a plurality of programs are stored in the storage space in sequence;
or the like, or, alternatively,
the location number comprises a multidimensional logical location number; the multidimensional logic position number is used for representing a logic position serial number of a program package to which the target program belongs on a storage space of the second operating system and a logic position serial number of the target program in the program package; a plurality of program packages are stored in the storage space in sequence; the program package comprises a plurality of programs which are arranged in sequence.
4. The program processing method according to claim 3, wherein before said determining a position number corresponding to a program identifier based on a correspondence relationship between the program identifier and the position number stored in advance, the method further comprises:
receiving the corresponding relation between the program identification and the position number sent by the second operating system;
and storing the corresponding relation between the program identification and the position number.
5. A program execution method applied to a second operating system, the method comprising:
receiving a program executable by the second operating system sent by the first operating system; after the executable program is compiled from the first operating system to an application program source code to obtain an application program component which can be identified by the second operating system, the application program component is linked with the second operating system to obtain a program;
and running the executable program.
6. A program processing apparatus applied to a first operating system, comprising:
the compiling module is used for compiling the source code of the application program to obtain an application program component which can be identified by the second operating system;
the link module is used for linking the application program assembly with a second operating system and generating a program executable by the second operating system;
and the sending module is used for sending the executable program to the second operating system.
7. A program execution device, applied to a second operating system, comprising:
a receiving module, configured to receive a program executable by the second operating system sent by the first operating system; after the executable program is compiled from the first operating system to an application program source code to obtain an application program component which can be identified by the second operating system, the application program component is linked with the second operating system to obtain a program;
and the running module is used for running the executable program.
8. A terminal, comprising a first operating system comprising a first processor and a second memory, the first memory having a first computer program stored therein, the first processor executing the first computer program to implement the method of any of claims 1-4.
9. A smart card comprising a second operating system including a second processor and a second memory, the second memory having a second computer program stored therein, the second processor executing the second computer program to implement the method of claim 5.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a third computer program which, when executed by at least one processor, implements the method according to any one of claims 1-4 or 5.
CN202210458950.3A 2022-04-27 2022-04-27 Program processing method, program operating device, terminal, smart card and storage medium Pending CN114860204A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210458950.3A CN114860204A (en) 2022-04-27 2022-04-27 Program processing method, program operating device, terminal, smart card and storage medium
PCT/CN2023/090741 WO2023208012A1 (en) 2022-04-27 2023-04-26 Program processing method and apparatus, program running method and apparatus, terminal, smart card and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210458950.3A CN114860204A (en) 2022-04-27 2022-04-27 Program processing method, program operating device, terminal, smart card and storage medium

Publications (1)

Publication Number Publication Date
CN114860204A true CN114860204A (en) 2022-08-05

Family

ID=82633625

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210458950.3A Pending CN114860204A (en) 2022-04-27 2022-04-27 Program processing method, program operating device, terminal, smart card and storage medium

Country Status (2)

Country Link
CN (1) CN114860204A (en)
WO (1) WO2023208012A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023208012A1 (en) * 2022-04-27 2023-11-02 恒宝股份有限公司 Program processing method and apparatus, program running method and apparatus, terminal, smart card and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010034818A1 (en) * 1998-09-02 2001-10-25 Christian May Method for linking program modules reloaded into a main memory of a processor on a smart card
CN1341238A (en) * 1999-11-17 2002-03-20 布尔Cp8公司 Method for loading applications in a multiapplication on platform system equipped with data processing resources, corresponding executing system and method
CN104978221A (en) * 2015-06-09 2015-10-14 北京远特科技有限公司 Method and system for implementing downloading and deleting of program
CN114296774A (en) * 2021-12-13 2022-04-08 中电金信软件有限公司 Application program storage method, application program calling device and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751258B (en) * 2009-12-30 2013-06-26 大唐微电子技术有限公司 Intelligent card and developing method, system and deployment method for intelligent card application
GB201115501D0 (en) * 2011-09-08 2011-10-26 Ideaworks 3D Ltd A method and system for producing executable applications
CN106502695A (en) * 2016-10-26 2017-03-15 合肥润客软件科技有限公司 One kind is based on embedded software development method
CN112631684B (en) * 2020-12-30 2021-08-06 北京元心科技有限公司 Executable program running method and device, electronic equipment and computer storage medium
CN114860204A (en) * 2022-04-27 2022-08-05 恒宝股份有限公司 Program processing method, program operating device, terminal, smart card and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010034818A1 (en) * 1998-09-02 2001-10-25 Christian May Method for linking program modules reloaded into a main memory of a processor on a smart card
CN1341238A (en) * 1999-11-17 2002-03-20 布尔Cp8公司 Method for loading applications in a multiapplication on platform system equipped with data processing resources, corresponding executing system and method
CN104978221A (en) * 2015-06-09 2015-10-14 北京远特科技有限公司 Method and system for implementing downloading and deleting of program
CN114296774A (en) * 2021-12-13 2022-04-08 中电金信软件有限公司 Application program storage method, application program calling device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023208012A1 (en) * 2022-04-27 2023-11-02 恒宝股份有限公司 Program processing method and apparatus, program running method and apparatus, terminal, smart card and storage medium

Also Published As

Publication number Publication date
WO2023208012A1 (en) 2023-11-02

Similar Documents

Publication Publication Date Title
CN109032631B (en) Application program patch package obtaining method and device, computer equipment and storage medium
US20150363195A1 (en) Software package management
CN110231994B (en) Memory analysis method, memory analysis device and computer readable storage medium
CN111930382B (en) Application page access method, device and equipment
CN112769706B (en) Componentized routing method and system
CN104750528A (en) Management method and device for components in Android program
CN114531477B (en) Method and device for configuring functional components, computer equipment and storage medium
CN111104158A (en) Software packaging method and device, computer equipment and storage medium
CN111399840A (en) Module development method and device
CN110333872B (en) Application processing method, device, equipment and medium
CN114860204A (en) Program processing method, program operating device, terminal, smart card and storage medium
CN112596746B (en) Application installation package generation method and device, computer equipment and storage medium
CN113987337A (en) Search method, system, equipment and storage medium based on componentized dynamic arrangement
EP1280051A1 (en) Information processing method and system
CN110018831B (en) Program processing method, program processing apparatus, and computer-readable storage medium
CN111736923A (en) Data processing method and device, electronic equipment and readable storage medium
CN111352631A (en) Interface compatibility detection method and device
CN106778270B (en) Malicious application detection method and system
CN114791884A (en) Test environment construction method and device, storage medium and electronic equipment
CN114253587A (en) Application program updating method and device, electronic equipment and readable storage medium
CN113986744A (en) Method and device for testing warehouse and table components and storage medium
CN113282541A (en) File calling method and device and electronic equipment
CN112612474A (en) Product transplanting method and device, storage medium and electronic equipment
CN114629807A (en) Work order processing method, device and equipment
CN111857816A (en) Register allocation method and device, electronic equipment and computer 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