Method and device for operating standard program C under Android system
An Android system, standard technology, applied in memory systems, program control design, instruments, etc., can solve problems such as porting difficulties, reduce file size, and solve the effect of incomplete system library files
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] See figure 1 As shown, the present invention provides a method for running standard C programs under the Android system, including:
[0041] S101, searching step: searching for all library files required by the C program to be run under the standard C library environment;
[0042] S102, copying step: create a directory of standard C library in the Android source code, copy the library file found to the directory of the standard C library in the Android source code;
[0043] S103, the soft link step: write the command in the Android source code, compile the Android source code, after the system starts, the system executes the command, realizes the creation of a user-defined directory, and soft-links the user-defined directory to the standard C in the Android source code directory of the library;
[0044] S104, running step: find all library files required by the C program through the user-defined directory under the Android system, and run the C program.
[0045]
Embodiment 2
[0047] See figure 2 As shown, in this embodiment, before the search step S101, it also includes:
[0048] S100, preparation steps: download the Android source code under the Linux operating system, and build the Android system
[0049] translation environment.
[0050]
[0051] See image 3 As shown, in this embodiment, the searching step S101 specifically includes:
[0052] S1011, searching for all dynamic library files required by the C program to be run under the standard C library environment;
[0053] S1012, judging whether each dynamic library file found is a soft link file;
[0054] S1013, query the common files that all soft link files depend on;
[0055] S1014. Change the file name of the ordinary file to the file name of the corresponding soft link file.
[0056] The following example illustrates the search steps:
[0057] For example: the file name of the C program to be run is test.c, and the content is as follows:
[0058] / / ============== START=========...
Embodiment 3
[0141] See Figure 5As shown, another embodiment of the present invention provides: a device for running a standard C program under the Android system, including:
[0142] Search module 501, for searching all library files needed by the C program to be run under the standard C library environment;
[0143] Copy module 502, is used for creating the catalog of a standard C storehouse in Android source code, the described storehouse file that will find is copied under the catalog of described standard C storehouse in Android source code;
[0144] The soft link module 503 is used to write commands in the Android source code and compile the Android source code. After the system is started, the system executes the command to realize the creation of a user-defined directory and soft link the user-defined directory to the Android source code. The directory of the C library;
[0145] The running module 504 is used to find all library files required by the C program through the user-d...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com