Code library cutting method and device for mobile terminal
A code base, mobile terminal technology, applied in the computer field
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] First, refer to figure 1 An example electronic device 100 for implementing a method and an apparatus for clipping a code base of a mobile terminal according to an embodiment of the present invention will be described.
[0029] like figure 1 Shown is a schematic structural diagram of an electronic device. The electronic device 100 includes one or more processors 102, one or more storage devices 104, an input device 106, an output device 108, and an image acquisition device 110. These components pass through a bus system 112 and / or other forms of connection mechanisms (not shown). It should be noted that figure 1 The components and structure of the electronic device 100 shown are only exemplary, not limiting, and the electronic device may also have other components and structures as required.
[0030] The processor 102 can be implemented in at least one hardware form of a digital signal processor (DSP), a field programmable gate array (FPGA), and a programmable logic a...
Embodiment 2
[0037] This embodiment provides a method for clipping a code library on a mobile terminal, which can be executed by the above-mentioned electronic devices such as computers, see figure 2 The schematic flow chart of the method for clipping the code base of the mobile terminal is shown, and the method mainly includes the following steps S210 to S230:
[0038] S210. Segment the code to be trimmed in the code base.
[0039] The code base is generally a code base in a mobile terminal, and the mobile terminal may refer to a mobile device. Due to the characteristics of the mobile terminal itself, the processing power and storage capacity of the processor are very valuable, which can be said to be very expensive. However, since the target mobile terminal is mainly developing towards a direction with complete functions and powerful capabilities, the scale of the code base configured on it is also becoming larger and larger.
[0040]In the embodiment of the present invention, there m...
Embodiment 3
[0058] This embodiment provides an example of a code library clipping method for a mobile terminal, which can be executed by the above-mentioned electronic equipment such as a computer, see image 3 The flow chart of the code base clipping method on the mobile terminal is shown, and the method mainly includes the following steps:
[0059] Step a), instrumentation stage: determine the code to be trimmed, perform instrumentation on the code to be tailored, and obtain the code after instrumentation.
[0060] For example, some functions or methods with a large binary size (binary size) in the code base can be found out (that is, the code to be trimmed). This step can be realized through the viewing function of the llvm-nm tool. Then determine the larger function or method that is queried as the code to be trimmed, and insert it (that is, wrap the key code with MIDOUT_BEGIN and MIDOUT_END), so as to facilitate subsequent recording of the execution path of the code during program ru...
PUM

Abstract
Description
Claims
Application Information

- Generate Ideas
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com