[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN117389645A - Application running method, device, electronic equipment and readable storage medium - Google Patents

Application running method, device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN117389645A
CN117389645A CN202311297314.8A CN202311297314A CN117389645A CN 117389645 A CN117389645 A CN 117389645A CN 202311297314 A CN202311297314 A CN 202311297314A CN 117389645 A CN117389645 A CN 117389645A
Authority
CN
China
Prior art keywords
application
bits
code
running
converted
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
CN202311297314.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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202311297314.8A priority Critical patent/CN117389645A/en
Publication of CN117389645A publication Critical patent/CN117389645A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses an application running method, an application running device, electronic equipment and a readable storage medium, and belongs to the technical field of electronics. The method comprises the following steps: converting code of a first application from 32 bits to64 bits under the condition of running the first application, wherein the first application is a 32-bit application; and loading the converted code of the first application to run the first application.

Description

Application running method, device, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of electronics, and particularly relates to an application running method, an application running device, electronic equipment and a readable storage medium.
Background
With the development of electronic technology, applications are migrated to64 bits, and 64-bit applications have better performance and are smoother to run.
In the prior art, the main frequency of the position of the processor where the 32-bit application runs is low, so that the 32-bit application runs out of the way, and a user cannot enjoy better experience.
It can be seen that in the prior art, 32-bit applications have the problem of not running smoothly.
Disclosure of Invention
The embodiment of the application aims to provide an application running method which can solve the problem that 32-bit application has unsmooth running.
In a first aspect, an embodiment of the present application provides an application running method, where the method includes: converting code of a first application from 32 bits to64 bits under the condition of running the first application, wherein the first application is a 32-bit application; and loading the converted code of the first application to run the first application.
In a second aspect, an embodiment of the present application provides an application running apparatus, including: the conversion module is used for converting codes of a first application from 32 bits to64 bits under the condition of running the first application, wherein the first application is a 32-bit application; and the first loading module is used for loading the converted code of the first application so as to run the first application.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the method according to the first aspect.
In the embodiment of the present application, in the case of running a 32-bit first application, first, the 32-bit code of the first application is converted into 64 bits, and then the converted code is loaded to run the first application. Therefore, based on the embodiment of the application, the first application can be enabled to run on the high main frequency of the central processing unit through the conversion of the application codes, so that the high-frequency advantage of the central processing unit can be well utilized, the first application can be enabled to run smoothly, and the user experience is improved.
Drawings
FIG. 1 is a flow chart of an application running method of an embodiment of the present application;
FIG. 2 is a schematic display diagram of an electronic device according to an embodiment of the present application;
FIG. 3 is a block diagram of an application running apparatus of an embodiment of the present application;
fig. 4 is one of the hardware structural diagrams of the electronic device according to the embodiment of the present application;
fig. 5 is a second schematic diagram of a hardware structure of the electronic device according to the embodiment of the present application.
Detailed Description
Technical solutions of embodiments of the present application will be clearly described below with reference to the accompanying drawings of embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The application operation method provided by the embodiment of the application is described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
Fig. 1 shows a flowchart of an application running method according to an embodiment of the present application, where the method is applied to an electronic device for example, and the method includes:
step 110: in the case of running a first application, code of the first application is converted from 32 bits to64 bits, wherein the first application is a 32-bit application.
In this step, the system starts the incubator (zygate) _32to64 process, which is a 64-bit process that inherits the properties of zygate 64. Thus converting the code of the first application from 32 bits to64 bits based on the zygate_32 to64 process.
In addition, when a 64-bit application is running, the system starts the code of the 64-bit application that the zygate 64 runs.
The method comprises the steps that two pre-ground codes are arranged in an installation package of a first application, the upper layer is a java code, and the java code is packaged into a dex-format file; the bottom layer is "native" code written in the c, c++ language, which is packaged into a file in "so" format.
On the one hand, the code in the "dex" format is obtained by decompression from the apk file of the first application, and the code in the "dex" format is compiled into the 64-bit code of the target platform. Wherein in this process, a dex2oat64 process is performed.
On the other hand, the code in the "so" format is decompressed from the apk file of the first application, and the code in the "so" format is converted into the code in the "so" format of 64 bits. Wherein the "native" code corresponds to a dynamically linked library in "so" format, which is converted to 64-bit code in "so" format using binary translation (binary translation) techniques.
Specifically, the 32-bit code in the "so" format is decompressed from the apk file, and then the code in the "so" format is loaded into the memory, and binary translation is executed on the code in the "so" format and converted into the 64-bit code in the "so" format.
Step 120: the converted code of the first application is loaded to run the first application.
The converted code of the first application is loaded, and the code of the 64-bit 'so' format is loaded and linked in through a linker (linker), so that the code of the 'so' format can be executed.
In the embodiment of the present application, in the case of running a 32-bit first application, first, the 32-bit code of the first application is converted into 64 bits, and then the converted code is loaded to run the first application. Therefore, based on the embodiment of the application, the first application can be enabled to run on the high main frequency of the central processing unit through the conversion of the application codes, so that the high-frequency advantage of the central processing unit can be well utilized, the first application can be enabled to run smoothly, and the user experience is improved.
In the flow of the application running method according to another embodiment of the present application, before step 110, the method further includes:
step A1: in the process of running the first application for the nth time, obtaining M frame rates of the first application, wherein N, M is a positive integer, and M is greater than 1.
Alternatively, during the nth running of the first application, the frame rate of the first application is obtained, so that M frame rates may be obtained. The frame rate of the first application may be acquired at random or once at the same time.
Correspondingly, step 110 includes:
substep A2: in the case of running the first application n+1th time, the code of the first application is converted from 32 bits to64 bits according to M frame rates.
In this step, based on the M frame rates acquired last time (nth time), during the present (n+1th time) running, the M frame rates are analyzed to obtain whether code conversion is required before the first application is executed this time, so as to ensure that the first application is executed more smoothly.
The frame rate is used to evaluate whether the code of the first application needs to be converted, and the frame rate can be used to express the smoothness of the application running.
In this embodiment, a part of storage space is also occupied in the conversion operation, so that a link for judging the first application in advance is added, so that the conversion operation of the code is selectively performed on the first application according to the frame rate of the first application.
In the flow of the application running method according to another embodiment of the present application, step D2 includes:
substep B1: in the case that the M frame rates are all smaller than the first threshold, the code of the first application is converted from 32 bits to64 bits.
In this step, if the M frame rates are all smaller than the first threshold, specifically, the frame rate of the first application is lower, it is indicated that the first application is not smooth.
Alternatively, substep B2: in the case that the variance of the M frame rates is greater than the second threshold, the code of the first application is converted from 32 bits to64 bits.
In this step, if the frame rate of the first application is unstable, specifically, the variance of the M frame rates is greater than the second threshold, it is indicated that the first application is not running smoothly.
Therefore, based on any step, transcoding of the first application can be achieved, so that the smoothness of operation of the first application is improved.
In this embodiment, a method for determining whether a 32-bit first application needs to perform a code conversion operation is provided, where whether the first application is smooth in running is obtained through M frame rates obtained in a process of running the first application at a time, so that when the first application may not be smooth in running, the code of the first application is converted under the condition of running the first application next time.
In the flow of the application running method according to another embodiment of the present application, before step 110, the method further includes:
step C1: a first input to a first application is received.
The first input includes a touch input made by a user on a screen, and is not limited to click, slide, drag, and other inputs. The first input may also be a blank input of the user, such as a gesture action, a facial action, etc., and further includes an input of the user to a physical key on the device, not limited to a press, etc. Moreover, the first input comprises one or more inputs, wherein the plurality of inputs may be continuous or time-spaced.
In this step, a first input is for the user to add the first application to the first list.
For example, referring to FIG. 2, in a setup page, listing a plurality of 32-bit applications, a user clicking on a control 201 of a first application may add the first application to a first list.
Optionally, the user adds all applications with higher performance requirements to the first list, so as to improve the running smoothness of the application.
Step C2: in response to the first input, the first application is added to the first list.
Wherein, in case of running each application in the first list for the first time, the code of each application is converted from 32 bits to64 bits to run the converted 64-bit code.
In this step, the first application is added to the first list.
After the first application is added to the first list, and when the first application is first run, a conversion operation is performed on the first application, so that the converted 64-bit code is loaded to run the first application.
In the embodiment, a user can manually control the batch 32-bit application to perform code conversion, so that the running fluency of the application can be improved in batches, and the high requirement of the user on the running fluency of a large number of 32-bit applications is met.
In other embodiments of the present application, when running a 32-bit application, if no conversion operation is required, the system starts the zygate 32to run the application code.
In the flow of the application running method according to another embodiment of the present application, after step 110, the method further includes:
step D1: the first application translated 64-bit code is saved.
In this step, after completing one conversion, the converted 64-bit code may be saved to the specified directory of the first application, so that the 64-bit code may be directly loaded without frequent conversion operations when the first application is subsequently executed.
Alternatively, the converted "java" code is saved under the directory of the "data" file, and the saved directory is defined as "dex2oat64_outdir". When the first application is operated again, the java code is directly read from the dex2oat64_outdir directory, and the read java code is 64 bits without conversion.
Alternatively, the converted "native" code is saved under the directory of the "data" file, and the saved directory is defined as "binary translation _outdir". When the first application is operated again, the code of the native is directly read from the directory of the binary translation _outdir, and conversion is not needed.
Correspondingly, after step 120, the method further comprises:
step D2: in the case of running the first application again, the converted 64-bit code of the first application is loaded to run the first application.
In the step, when the first application is operated again, a zygate 64 process is started, the java code of the dex2oat64_outdir directory is loaded in the zygate 64 process, meanwhile, the active code of the binary translation _outdir directory is loaded by a linker, the first application with 32 bits can have 64-bit operation environment, and the first application with 32 bits is operated on a high-frequency core of a central processor.
In this embodiment, the conversion result of one conversion operation is stored, so that multiple conversion operations can be avoided, and the running smoothness of the first application is further improved.
In summary, in a system of an electronic device, if the system supports 64-bit applications, the process of zygate_64 is started, and if the system supports 32-bit applications, the process of zygate_32 is started. In the application, by changing a system mechanism and adopting a binary conversion technology, the 32-bit application is compatible to be run on 64 bits, so that the 32-bit application can run on a chip more smoothly. If the application only supports 32 bits, whether conversion is needed or not can be further judged, if the conversion is needed, a zygate_32 to64 process is started, the process is a 64-bit process, java codes and active codes are processed in the process to be converted into 64 bits, so that the application can be operated on a high-frequency core according to64 bits, the 32-bit application can utilize the high-frequency core performance of the central processor, the 32-bit application can be operated on the processor with higher performance, the physical limitation of the central processor is relieved, the effect of improving the smoothness of the application is achieved through a software method, and the user experience is improved.
According to the application running method provided by the embodiment of the application, the execution main body can be an application running device. In the embodiment of the present application, an application running device executes an application running method by using an application running device as an example, and the application running device provided in the embodiment of the present application is described.
FIG. 3 illustrates a block diagram of an application running apparatus according to one embodiment of the present application, the apparatus comprising:
a conversion module 10, configured to convert code of a first application from 32 bits to64 bits in a case of running the first application, where the first application is a 32-bit application;
the first loading module 20 is configured to load the converted code of the first application to run the first application.
In the embodiment of the present application, in the case of running a 32-bit first application, first, the 32-bit code of the first application is converted into 64 bits, and then the converted code is loaded to run the first application. Therefore, based on the embodiment of the application, the first application can be enabled to run on the high main frequency of the central processing unit through the conversion of the application codes, so that the high-frequency advantage of the central processing unit can be well utilized, the first application can be enabled to run smoothly, and the user experience is improved.
Optionally, the apparatus further comprises:
the acquisition module is used for acquiring M frame rates of the first application in the process of running the first application for the nth time, wherein N, M is a positive integer, and M is more than 1;
the conversion module 10 includes:
and a conversion unit for converting the code of the first application from 32 bits to64 bits according to M frame rates in the case of running the first application n+1th time.
Optionally, the conversion unit includes:
a first converting subunit, configured to convert the code of the first application from 32 bits to64 bits in a case where the M frame rates are all less than the first threshold; or,
and a second converting subunit for converting the code of the first application from 32 bits to64 bits in the case that the variance of the M frame rates is greater than the second threshold.
Optionally, the apparatus further comprises:
the storage module is used for storing the 64-bit codes converted by the first application;
and the second loading module is used for loading the converted 64-bit code of the first application under the condition of running the first application again so as to run the first application.
The device in the embodiment of the application may be an electronic device, or may be a component in an electronic device, for example, an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The device of the embodiment of the application may be a device with an action system. The action system may be an Android (Android) action system, may be an ios action system, and may also be other possible action systems, which are not specifically limited in the embodiments of the present application.
The device provided by the embodiment of the application can realize each process realized by the embodiment of the method and realize the same technical effect, and in order to avoid repetition, the description is omitted here.
Optionally, as shown in fig. 4, the embodiment of the present application further provides an electronic device 100, including a processor 101, a memory 102, and a program or an instruction stored in the memory 102 and capable of being executed on the processor 101, where the program or the instruction implements each step of any one of the application running method embodiments described above when executed by the processor 101, and the steps achieve the same technical effects, and for avoiding repetition, a description is omitted herein.
The electronic device of the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 5 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: radio frequency unit 1001, network module 1002, audio output unit 1003, input unit 1004, sensor 1005, display unit 1006, user input unit 1007, interface unit 1008, memory 1009, processor 1010, camera 1011, and the like.
Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 1010 by a power management system to perform functions such as managing charge, discharge, and power consumption by the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The processor 1010 is configured to convert code of a first application from 32 bits to64 bits in a case of running the first application, where the first application is a 32-bit application; and loading the converted code of the first application to run the first application.
In the embodiment of the present application, in the case of running a 32-bit first application, first, the 32-bit code of the first application is converted into 64 bits, and then the converted code is loaded to run the first application. Therefore, based on the embodiment of the application, the first application can be enabled to run on the high main frequency of the central processing unit through the conversion of the application codes, so that the high-frequency advantage of the central processing unit can be well utilized, the first application can be enabled to run smoothly, and the user experience is improved.
Optionally, the processor 1010 is further configured to obtain M frame rates of the first application during the nth running of the first application, where N, M is a positive integer, and M >1; in the case of running the first application n+1th time, the code of the first application is converted from 32 bits to64 bits according to the M frame rates.
Optionally, the processor 1010 is further configured to convert the code of the first application from 32 bits to64 bits if the M frame rates are all less than a first threshold; alternatively, the code of the first application is converted from 32 bits to64 bits if the variance of the M frame rates is greater than a second threshold.
Optionally, the processor 1010 is further configured to save the 64-bit code after the first application conversion; and under the condition of running the first application again, loading the converted 64-bit code of the first application to run the first application.
In summary, in a system of an electronic device, if the system supports 64-bit applications, the process of zygate_64 is started, and if the system supports 32-bit applications, the process of zygate_32 is started. In the application, by changing a system mechanism and adopting a binary conversion technology, the 32-bit application is compatible to be run on 64 bits, so that the 32-bit application can run on a chip more smoothly. If the application only supports 32 bits, whether conversion is needed or not can be further judged, if the conversion is needed, a zygate_32 to64 process is started, the process is a 64-bit process, java codes and active codes are processed in the process to be converted into 64 bits, so that the application can be operated on a high-frequency core according to64 bits, the 32-bit application can utilize the high-frequency core performance of the central processor, the 32-bit application can be operated on the processor with higher performance, the physical limitation of the central processor is relieved, the effect of improving the smoothness of the application is achieved through a software method, and the user experience is improved.
It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes image data of a still picture or a video image obtained by an image capturing device (such as a camera) in a video image capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 can include two portions, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 1009 may be used to store software programs as well as various data including, but not limited to, application programs and an action system. The processor 1010 may integrate an application processor that primarily processes an action system, user pages, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1010.
The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 1009 may include volatile memory or nonvolatile memory, or the memory 1009 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 1009 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, and the like, and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 1010.
The embodiment of the application also provides a readable storage medium, and the readable storage medium stores a program or an instruction, which when executed by a processor, implements each process of the above embodiment of the application running method, and can achieve the same technical effects, so that repetition is avoided, and no further description is given here.
The processor is a processor in the electronic device in the above embodiment. Readable storage media include computer readable storage media such as computer readable memory ROM, random access memory RAM, magnetic or optical disks, and the like.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running a program or instructions, each process of the embodiment of the application running method is implemented, the same technical effect can be achieved, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
The embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the respective processes of the embodiments of the application running method described above, and achieve the same technical effects, and are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods of the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (10)

1. An application running method, characterized in that the method comprises:
converting code of a first application from 32 bits to64 bits under the condition of running the first application, wherein the first application is a 32-bit application;
and loading the converted code of the first application to run the first application.
2. The method of claim 1, wherein the method further comprises, prior to converting the code of the first application from 32 bits to64 bits in the case of running the first application:
in the process of running a first application for the nth time, obtaining M frame rates of the first application, wherein N, M is a positive integer, and M is more than 1;
the converting the code of the first application from 32 bits to64 bits in the case of running the first application includes:
in the case of running the first application n+1th time, the code of the first application is converted from 32 bits to64 bits according to the M frame rates.
3. The method of claim 2, wherein said converting the code of the first application from 32 bits to64 bits according to the M frame rates comprises:
converting the code of the first application from 32 bits to64 bits if the M frame rates are all less than a first threshold; or,
the code of the first application is converted from 32 bits to64 bits if the variance of the M frame rates is greater than a second threshold.
4. The method of claim 1, wherein after the converting the code of the first application from 32 bits to64 bits, the method further comprises:
saving the 64-bit code converted by the first application;
after loading the converted code of the first application to run the first application, the method includes:
and under the condition of running the first application again, loading the converted 64-bit code of the first application to run the first application.
5. An application running apparatus, the apparatus comprising:
the conversion module is used for converting codes of a first application from 32 bits to64 bits under the condition of running the first application, wherein the first application is a 32-bit application;
and the first loading module is used for loading the converted code of the first application so as to run the first application.
6. The apparatus of claim 5, wherein the apparatus further comprises:
the acquisition module is used for acquiring M frame rates of the first application in the process of running the first application for the nth time, wherein N, M is a positive integer, and M is more than 1;
the conversion module comprises:
and the conversion unit is used for converting the code of the first application from 32 bits to64 bits according to the M frame rates under the condition that the first application is operated for the (n+1) th time.
7. The apparatus of claim 6, wherein the conversion unit comprises:
a first converting subunit, configured to convert the code of the first application from 32 bits to64 bits if the M frame rates are all less than a first threshold; or,
and a second converting subunit, configured to convert the code of the first application from 32 bits to64 bits if the variance of the M frame rates is greater than a second threshold.
8. The apparatus of claim 5, wherein the apparatus further comprises:
the storage module is used for storing the 64-bit codes converted by the first application;
and the second loading module is used for loading the converted 64-bit code of the first application under the condition of running the first application again so as to run the first application.
9. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the application running method of any one of claims 1 to 4.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the application running method according to any of claims 1 to 4.
CN202311297314.8A 2023-10-08 2023-10-08 Application running method, device, electronic equipment and readable storage medium Pending CN117389645A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311297314.8A CN117389645A (en) 2023-10-08 2023-10-08 Application running method, device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311297314.8A CN117389645A (en) 2023-10-08 2023-10-08 Application running method, device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN117389645A true CN117389645A (en) 2024-01-12

Family

ID=89469342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311297314.8A Pending CN117389645A (en) 2023-10-08 2023-10-08 Application running method, device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN117389645A (en)

Similar Documents

Publication Publication Date Title
US10303491B2 (en) Method and device of running application program across systems
CN108549568B (en) Application entry processing method and device, storage medium and electronic equipment
CN103870123B (en) A kind of information processing method and electronic equipment
CN103443763A (en) ISA bridging including support for call to overidding virtual functions
CN110750664A (en) Picture display method and device
CN115357173A (en) Screen control method and device and electronic equipment
CN113741708B (en) Input method and electronic equipment
CN116107531A (en) Interface display method and device
CN115357389A (en) Memory management method and device and electronic equipment
WO2019139740A1 (en) Extensible input stack for processing input device data
CN117389645A (en) Application running method, device, electronic equipment and readable storage medium
CN116149488A (en) Input method starting method and device and electronic equipment
CN115729412A (en) Interface display method and device
US20190213015A1 (en) Extensible input stack for processing input device data
CN114070892A (en) Data transmission method and device
CN114253449A (en) Screen capturing method, device, equipment and medium
CN115167721A (en) Display method and device of functional interface
CN114510284A (en) Page loading method and device, electronic equipment and readable storage medium
CN114647411A (en) Programming interface loading method and device, electronic equipment and storage medium
CN114489698A (en) Application program installation method and device
CN112382379A (en) Soft keyboard implementation method and device of ultrasonic equipment, ultrasonic equipment and storage medium
CN113220134A (en) Input method, input device and input device
CN117234655B (en) Method, device, equipment and medium for running Linux desktop program based on android system
WO2024199057A1 (en) Haptic data encoding method, haptic data decoding method, and related device
US20040044728A1 (en) Application program sharing systems, processing devices and application program sharing methods

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