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

Inactive Publication Date: 2013-10-02
SONOSCAPE MEDICAL CORP
View PDF2 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0013] The present invention is to solve the problem of running the program compiled by the standard C library on the Android system platform. By building a working environment of the standard C library in the Android system, the above-mentioned difficult problem of transplantation can be solved.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for operating standard program C under Android system
  • Method and device for operating standard program C under Android system
  • Method and device for operating standard program C under Android system

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the technical field of Android systems, in particular to a method and device for operating a standard program C under an Android system. The method comprises the steps that all library files required by the program C to be operated under a standard library C environment are searched; a catalog of the standard library C is created in Android source codes and the searched library files are copied into the catalog of the standard library C in the Android source codes; when the Android system is initialized, a user-defined catalog is created and is in soft linkage with the catalog of the standard library C in the Android source codes; all the library files required by the program C are found through the user-defined catalog under the Android system and the program C is operated. The executable library files can be compiled under the standard C environment, the dynamically linked standard library C can be directly operated on the Android system, and therefore the size of the files is reduced; Android. Mk rules and an Android compiling method do not need to be learned; the problem of the difference between the library files of the Android system and library files of a standard Linux system is solved.

Description

[0001] technical field [0002] The invention relates to the technical field of the Android system, in particular to a method and a device for running a standard C program under the Android system. [0003] Background technique [0004] In recent years, the Android system has been popular all over the world since its advent. The Android system has become a miracle. With its excellent user experience, it has occupied half of the consumer electronics market. [0005] The Android system has gradually expanded to various fields, and oncoming problems have also arisen. Many companies need to transplant existing C programs to the Android system, but due to changes in the LIBC library of the Android system, they cannot be used directly, and there is no There is a relatively convenient solution to solve this problem, so they cannot directly run the compiled program on the Android system, and need to invest a certain amount of manpower and material resources for program transplanta...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/45
Inventor 才士民金文波
Owner SONOSCAPE MEDICAL CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products