CN116069333A - Program compiling method, device, electronic equipment, storage medium and program product - Google Patents

Program compiling method, device, electronic equipment, storage medium and program product Download PDF

Info

Publication number
CN116069333A
CN116069333A CN202111293199.8A CN202111293199A CN116069333A CN 116069333 A CN116069333 A CN 116069333A CN 202111293199 A CN202111293199 A CN 202111293199A CN 116069333 A CN116069333 A CN 116069333A
Authority
CN
China
Prior art keywords
target
file
program
directory
compiling
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
CN202111293199.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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202111293199.8A priority Critical patent/CN116069333A/en
Publication of CN116069333A publication Critical patent/CN116069333A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/47Retargetable compilers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The embodiment of the invention discloses a program compiling method, a program compiling device, electronic equipment, a storage medium and a program product; when compiling the target program fails, acquiring a file path set generated in the compiling process of the target program, wherein the file path set comprises an initial file path of a calling file of the target program, searching the file path of the target calling file of the target program based on the file path set to obtain a target calling file path of the target calling file, compiling the target program according to the target calling file path, searching the target calling file under a program directory corresponding to the target program when compiling the target program fails according to the target calling file path to obtain an actual file path of the target calling file, and compiling the target program according to the actual file path of the target calling file; the method can reduce the dependence on manpower, and improve the efficiency of configuring the file path in the process of program development on the basis of ensuring the accuracy of file path configuration.

Description

Program compiling method, device, electronic equipment, storage medium and program product
Technical Field
The present invention relates to the field of computer technology, and in particular, to a program compiling method, apparatus, electronic device, storage medium, and program product.
Background
With the rapid development of current computers and the internet, various application programs are rapidly developed to provide corresponding services for users, and more program developers need to develop the application programs and also need to iteratively update and maintain the developed application programs.
At present, when compiling a program code, in order to ensure smooth compiling, after a plurality of code files with specific functions are called in the program code, a developer is required to manually perform path configuration of the files in a development environment, so that development efficiency is affected.
Disclosure of Invention
The embodiment of the invention provides a program compiling method, a device, electronic equipment, a storage medium and a program product, which can reduce the dependence on manpower, save manpower resources and improve the efficiency of configuring file paths in the process of program development on the basis of ensuring the accuracy of file path configuration.
The embodiment of the invention provides a program compiling method, which comprises the following steps:
when compiling of a target program fails, acquiring a file path set generated in the compiling process of the target program, wherein the file path set comprises an initial file path of a calling file of the target program;
Searching a file path of a target calling file of the target program based on a file path set to obtain a target calling file path of the target calling file;
compiling the target program according to the target calling file path;
when compiling the target program according to the target calling file path fails, searching the target calling file under a program directory corresponding to the target program to obtain an actual file path of the target calling file;
and compiling the target program according to the actual file path of the target calling file.
Correspondingly, the embodiment of the invention also provides a program compiling device, which comprises:
a set acquisition unit, configured to acquire a file path set generated in a compiling process of a target program when the compiling of the target program fails, where the file path set includes an initial file path of a calling file of the target program;
the path searching unit is used for searching the file path of the target calling file of the target program based on the file path set to obtain a target calling file path of the target calling file;
The first program compiling unit is used for compiling the target program according to the target calling file path;
the file searching unit is used for searching the target calling file under a program directory corresponding to the target program when compiling the target program according to the target calling file path fails, so as to obtain an actual file path of the target calling file;
and the second program compiling unit is used for compiling the target program according to the actual file path of the target calling file.
Optionally, the program directory corresponding to the target program includes a search program directory of a search program for performing file path search and a target program directory of the target program, where the file search unit includes a first file search unit and a second file search unit, where the first file search unit is configured to use an upper directory of the search program directory as a first search directory, and search the target call file under the first search directory;
and the second file searching unit is used for searching the target calling file under the target program directory when the target calling file is not searched under the first searching directory, so as to obtain the actual file path of the target calling file.
Optionally, the first file searching unit is configured to use a superior directory of the search program directory as a first search directory, and recursively access the first search directory to search the target call file under the first search directory;
and the second file searching unit is used for carrying out recursive access processing on the target program directory so as to search the target calling file under the target program directory and obtain the actual file path of the target calling file.
Optionally, the first file searching unit is configured to select an unoccupied directory from a lower directory of the first search directory as a current searching directory, search the target calling file under the current searching directory, where the lower directory of the first search directory includes the search program directory;
and when the target calling file is not found under the current searching directory, executing the step of selecting the non-accessed directory from the lower-level directory of the first searching directory as the current searching directory and searching the target calling file under the current searching directory until the target calling file is found or the lower-level directory of the first searching directory is accessed.
Optionally, the second file searching unit is configured to select an unoccupied directory from the target program directory as a current searching directory, and search the target calling file under the current searching directory;
and when the target calling file is not found under the current searching directory, executing the step of selecting the non-accessed directory from the target program directory as the current searching directory and searching the target calling file under the current searching directory until the target calling file or the lower directory of the target program directory is found.
Optionally, the program compiling device provided by the embodiment of the present invention further includes a file information obtaining unit, configured to obtain a file identifier and file type information of the target calling file;
correspondingly, the file searching unit is used for searching candidate files under the program directory corresponding to the target program, and the file identification of the candidate files is the same as the file identification of the target calling file;
and acquiring candidate file type information of the candidate file, and taking the candidate file as the target calling file when the candidate file type information is matched with the file type information.
Optionally, the program compiling device provided by the embodiment of the present invention further includes a set generating unit, configured to monitor a compiling process of the target program;
when the compiling process generates program content analysis information corresponding to the target program, determining the calling file referenced in the target program according to the program content analysis information;
determining an initial file path corresponding to the calling file based on the calling file;
and generating the file path set according to the initial file path.
Correspondingly, the embodiment of the invention also provides electronic equipment, which comprises a memory and a processor; the memory stores an application program, and the processor is configured to run the application program in the memory, so as to execute steps in any program compiling method provided by the embodiment of the invention.
Accordingly, an embodiment of the present invention further provides a computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform any of the steps in the program compiling method provided by the embodiment of the present invention.
In addition, the embodiment of the invention also provides a computer program product, which comprises a computer program or instructions, wherein the computer program or instructions realize the steps in any program compiling method provided by the embodiment of the invention when being executed by a processor.
By adopting the scheme of the embodiment of the invention, when compiling a target program fails, a file path set generated in the compiling process of the target program can be obtained, wherein the file path set comprises an initial file path of a calling file of the target program, the target calling file of the target program is subjected to file path searching based on the file path set to obtain a target calling file path of the target calling file, the target program is compiled according to the target calling file path, when compiling the target program according to the target calling file path fails, the target calling file is searched under a program directory corresponding to the target program to obtain an actual file path of the target calling file, and the target program is compiled according to the actual file path of the target calling file; when the compiling error is generated by the target program, the embodiment of the invention can determine the file path of the target calling file which can be normally compiled by the target program from the initial target calling file path and/or the program catalog corresponding to the target program, thereby reducing the dependence on manpower, saving manpower resources and improving the efficiency of configuring the file path in the process of program development on the basis of ensuring the accuracy of configuring the file path.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a scenario of a program compiling method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a program compiling method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a logic implementation of a program compiling method according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart of a program compiling method according to an embodiment of the invention;
fig. 5 is a schematic structural diagram of a program compiling apparatus according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of another configuration of a program compiling apparatus according to an embodiment of the invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
The embodiment of the invention provides a program compiling method, a program compiling device, electronic equipment and a computer readable storage medium. Specifically, the embodiment of the present invention provides a program compiling method suitable for a program compiling apparatus that may be integrated in an electronic device.
The electronic device may be a terminal or the like, including but not limited to a mobile terminal and a fixed terminal, for example, a mobile terminal including but not limited to a smart phone, a smart watch, a tablet computer, a notebook computer, a smart car, etc., wherein the fixed terminal includes but not limited to a desktop computer, a smart television, etc.
The electronic device may be a server, which may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network ), and basic cloud computing services such as big data and artificial intelligence platform, but is not limited thereto.
The program compiling method of the embodiment of the invention can be realized by a server or a terminal and the server together.
The method will be described below by taking an example in which the terminal and the server implement the program compiling method together.
As shown in fig. 1, a program compiling system provided by an embodiment of the present invention includes a terminal 10, a server 20, and the like; the terminal 10 and the server 20 are connected through a network, for example, a wired or wireless network connection, wherein the terminal 10 may exist as a terminal for a user to send client data to be analyzed to the server 20.
The terminal 10 may be a terminal for uploading a target program to be compiled to a user, and is configured to send the target program to be compiled to the server 20.
The server 20 may be configured to obtain, when compiling of the target program fails, a file path set generated during the compiling process of the target program, where the file path set includes an initial file path of a calling file of the target program, perform file path search on the target calling file of the target program based on the file path set, obtain a target calling file path of the target calling file, and compile the target program according to the target calling file path.
When compiling the target program according to the target calling file path fails, the server 20 searches the target calling file under the program directory corresponding to the target program to obtain an actual file path of the target calling file, and compiles the target program according to the actual file path of the target calling file.
The following will describe in detail. The following description of the embodiments is not intended to limit the preferred embodiments.
The embodiments of the present invention will be described from the point of view of a program compiling apparatus, which may be integrated in a server or a terminal in particular.
As shown in fig. 2, the specific flow of the program compiling method of the embodiment may be as follows:
201. when the compiling of the target program fails, a file path set generated in the compiling process of the target program is obtained, wherein the file path set comprises an initial file path of a calling file of the target program.
The target program is a program or code compiled in the program compiling device. In general, when a developer writes a program, an existing library file, a class file, or other calling file may be introduced into the program code to implement a certain function.
After the call files are introduced, search paths of the call files need to be added in the compiler, so that the compiler can find the corresponding call files through the search paths when compiling the program. However, if there is a mistake in the added path or the actual path of the calling file is different from the added path, then the program will fail in compiling the target program.
Wherein the calling file is a file called (or referenced) in the target program. For example, the calling file may be a file different from the code file of the target program, or the calling file may be one or more files in the code file of the target program, or the like.
It may be understood that there may be one or two or more call files called by the target program, which is not limited in the embodiment of the present invention.
The file path set is generated according to the initial file path of the calling file of the target program. For example, the set of file paths may be in the form of a map set.
Specifically, the initial file path may be a search path of the call file added in advance by the developer, or the initial file path may be empty.
In some alternative embodiments, the file path set may be preset by a developer, or the file path set may be generated during the compiling process of the target program. Specifically, before the step of "obtaining the file path set generated in the compiling process of the target program", the program compiling method provided by the embodiment of the invention may further include:
Monitoring the compiling process of the target program;
when the compiling process generates program content analysis information corresponding to the target program, determining a calling file referenced in the target program according to the program content analysis information;
determining an initial file path corresponding to the calling file based on the calling file;
a set of file paths is generated from the initial file paths.
It will be appreciated that during the compilation of the target program, the compiler will process the source code of the target program according to the principles of compilation. For example, during the compiling process of the target program, the compiler performs lexical analysis, syntax analysis, semantic analysis, intermediate code generation, and the like.
The program content analysis information may be information generated from a source code analysis result generated in the process of compiling the target program by the compiler.
In some alternative examples, the program content analysis information may be an abstract syntax tree (abstract syntax code, AST). The step of determining the calling file referenced in the target program according to the program content analysis information may include:
traversing the abstract syntax tree, and determining file calling nodes related to target program file calling instructions in the abstract syntax tree;
And determining calling files corresponding to each file calling node according to the file calling nodes.
For example, when performing lexical analysis, a compiler decomposes source code (character string) composed of characters into meaningful code blocks, which are collectively referred to as lexical elements (token). For example, let a=1, and this code will typically be broken down into the lexical elements let, a, =, 1, and space; whether a space is treated as a lexical element depends on the meaning of the space in the language.
Further, when the compiler performs syntax analysis and semantic analysis, the lexical unit stream is converted into a tree representing the syntax structure of the program, which is formed by element nesting, and the tree is called an abstract syntax tree.
That is, an AST is an abstract representation of the source code syntax structure of a target program, which represents the syntax structure of a programming language in the form of a tree, each node on the tree representing a structure in the source code.
202. And searching the file path of the target calling file of the target program based on the file path set to obtain the target calling file path of the target calling file.
The target calling file is a calling file which causes the compiling failure of the target program in the compiling process of the target program. The target calling file path may be an initial file path corresponding to the target calling file in the file path set.
For example, in the file path set, the storage form of the initial file path may be a string of characters, such as path 0:/Users/yonghu/Library/development/coresim/Devices/A1, where path0 represents the storage path of the A1 file as a storage path0,/Users/yonghu/Library/development/coresim/Devices preset by a Developer, and represents an actual storage directory of A1 or an actual address corresponding to path 0.
In some embodiments, when the target program compilation fails, the file identification of the target call file may be obtained. For example, the file identifier of the target calling file may be in the compiling result information generated by the compiling failure of the target program. The step of searching the file path of the target call file of the target program based on the file path set to obtain the target call file path of the target call file may include:
determining an initial file path of the target calling file from the file path set based on the file identification of the target calling file;
and taking the initial file path of the target calling file as the target calling file path of the target calling file.
For example, the file identifier of the target calling file may be A1, and the initial file path0 of A1 in the file path set may be determined according to A1, and the path0 is taken as the target calling file path.
203. And compiling the target program according to the target calling file path.
Wherein compiling is to change a high-level language into a binary language recognizable by a computer. The compiler divides the process of translating a source program into a target program into five phases: lexical analysis; analyzing grammar; semantic checking and intermediate code generation; code optimization; and generating an object code. Wherein the code optimization process can be implemented by an optimizer.
Specifically, the key work of compiling is to perform lexical analysis and grammar analysis, also called source program analysis, and grammar errors are found in the analysis process to give prompt information.
The compiling step of the target program according to the target calling file path can further determine the initial file path corresponding to the target calling file in the file path set, and avoid the phenomenon of compiling failure caused by accidental problems.
204. When compiling the target program according to the target calling file path fails, searching the target calling file under a program directory corresponding to the target program to obtain an actual file path of the target calling file.
The program directory corresponding to the target program may include a search program directory of a search program for performing a file path search and/or a target program directory of the target program. The search program directory is a directory of a search program capable of realizing a file path search function, and the target program directory may be a directory of a target program.
Taking the program directory corresponding to the target program as an example and describing that the program directory includes a search program directory and a target program directory, the step of searching the target calling file under the program directory corresponding to the target program to obtain an actual file path of the target calling file may include:
taking the upper-level directory of the search program directory as a first search directory, and searching the target calling file under the first search directory;
and when the target calling file is not found under the first search directory, searching the target calling file under the target program directory to obtain an actual file path of the target calling file.
The first search directory may be an upper directory of the search program directory. It should be noted that, the program directory corresponding to the target program may be different from the first search directory.
For example, when only the program directory corresponding to the target program is searched, the program directory corresponding to the target program may be the first search directory directly.
When the program directory corresponding to the target program includes both the search program directory and the target program directory, the program directory corresponding to the target program may be an abstract concept, not an actual file directory. At this time, the first search directory is an upper directory of the actual search program directory.
In some alternative embodiments, there may be many lower-level directories under the first search directory, and in order to alleviate the programming pressure of the developer, a recursive method may be used to search for the target call file under the first search directory. That is, the step of "searching the target call file under the first search directory with the upper directory of the search program directory as the first search directory" may include:
and taking the upper-level directory of the search program directory as a first search directory, and performing recursive access processing on the first search directory so as to search the target call file under the first search directory.
Where recursion is the program invoking its own programming skills. Generally, a procedure or function has a method for directly or indirectly calling itself in the definition or description thereof, which generally converts a large and complex problem layer by layer into a problem with smaller scale similar to the original problem to solve the problem, and the recursive strategy can describe repeated calculation required by the problem solving procedure only by a small number of programs, thereby greatly reducing the code quantity of the programs.
Specifically, the step of "performing recursive access processing on the first search directory to search for the target call file under the first search directory" may include:
Selecting an unoccupied directory from a lower-level directory of the first search directory as a current search directory, and searching a target calling file under the current search directory, wherein the lower-level directory of the first search directory comprises a search program directory;
when the target calling file is not found under the current searching directory, the step of selecting the non-accessed directory from the lower-level directory of the first searching directory as the current searching directory and searching the target calling file under the current searching directory is executed until the target calling file is found or the lower-level directory of the first searching directory is accessed.
That is, the first search directory is an upper directory of the search program directory, and the search program directory is a lower directory of the first search directory. For example, in some embodiments, only the search program directory may be under the first search directory; alternatively, under the first search directory, there may be other directories in addition to the search program directory. The embodiment of the present invention is not limited thereto.
It can be understood that when the target calling file is found in the first search directory, the step of searching the target calling file in the target program directory to obtain the actual file path of the target calling file may not be performed, and the path of the target calling file found in the first search directory may be used as the actual path of the target calling file.
In other alternative embodiments, there may be multiple target program directories, and in order to alleviate the programming pressure of the developer, a recursive method may be used to search for the target call file under the target program directory. That is, the step of "searching the target calling file under the target program directory to obtain the actual file path of the target calling file" may include:
and carrying out recursion access processing on the target program directory so as to search the target calling file under the target program directory and obtain the actual file path of the target calling file.
Specifically, the step of performing recursive access processing on the target program directory to search the target calling file under the target program directory to obtain an actual file path of the target calling file may include:
selecting an unoccupied directory from the target program directory as a current searching directory, and searching a target calling file under the current searching directory;
when the target calling file is not found under the current searching directory, the step of selecting the non-accessed directory from the target program directory as the current searching directory and searching the target calling file under the current searching directory is executed until the target calling file or the lower directory of the target program directory is searched.
It will be appreciated that there may be files of different file types under the same directory, for example two files of the same name may be static library files, one being a class file. At this time, when the target call file is searched, as shown in fig. 3, it should also be determined whether the file type of the searched file is the same as the file type of the file required for compiling the target program.
Therefore, the program compiling method provided by the embodiment of the invention further comprises the following steps:
and acquiring file identification and file type information of the target calling file.
Correspondingly, the step of searching the target calling file under the program directory corresponding to the target program may specifically include:
searching candidate files under a program directory corresponding to the target program, wherein the file identification of the candidate files is the same as the file identification of the target calling file;
and acquiring candidate file type information of the candidate file, and taking the candidate file as a target calling file when the candidate file type information is matched with the file type information.
205. And compiling the target program according to the actual file path of the target calling file.
Step 205 may specifically include:
according to the actual file path of the target calling file, adjusting the access path of the target calling file in the target program;
And compiling the target program according to the adjusted access path.
For example, when the target program is originally compiled, the compiler accesses path0 to call the target call file, and the actual file path is determined to be path1, and at this time, when the target program is compiled, the compiler accesses path1.
In some optional embodiments, after the step of compiling the target program according to the actual file path of the target call file, the program compiling method provided by the embodiment of the invention may further include:
when the compiling of the target program is successful, according to the actual file path of the target calling file, the initial file path corresponding to the target calling file in the file path set is adjusted.
By adjusting the initial file path corresponding to the target calling file in the file path set, the condition that the target program is failed to compile due to the calling error of the target calling file can be avoided in the compiling process of the target program.
In other optional embodiments, after the step of compiling the target program according to the actual file path of the target call file, the program compiling method provided by the embodiment of the invention may further include:
When the compiling of the target program fails, recording file related information of the target calling file and an actual file path of the target calling file as new compiling error information;
in response to the error information viewing request, new compiled error information is returned.
The error information viewing request may be generated by performing a triggering operation such as clicking, double clicking, etc. on the terminal by the developer, or may be generated by the developer writing an instruction capable of viewing error information, etc. The embodiment of the present invention is not limited thereto.
Through the new compiling error information, the information required by analyzing the compiling failure of the target program can be provided for the developer, so that the developer can quickly locate the failure reason.
As can be seen from the above, when the compiling of the target program fails, the embodiment of the invention can obtain the file path set generated in the compiling process of the target program, wherein the file path set includes the initial file path of the calling file of the target program, the target calling file of the target program is searched based on the file path set to obtain the target calling file path of the target calling file, the target program is compiled according to the target calling file path, when the compiling of the target program fails according to the target calling file path, the target calling file is searched under the program directory corresponding to the target program to obtain the actual file path of the target calling file, and the target program is compiled according to the actual file path of the target calling file; when the compiling error is generated by the target program, the embodiment of the invention can determine the file path of the target calling file which can be normally compiled by the target program from the initial target calling file path and/or the program catalog corresponding to the target program, thereby reducing the dependence on manpower, saving manpower resources and improving the efficiency of configuring the file path in the process of program development on the basis of ensuring the accuracy of configuring the file path.
The method described in the previous examples is described in further detail below by way of example.
In this embodiment, a description will be given with reference to the system of fig. 1.
As shown in fig. 4, the specific flow of the program compiling method of the embodiment may be as follows:
401. the server compiles the target program to generate a file path set.
The process of compiling the target program by the server can be realized by LLVM and Clang. LLVM is a framework system of a framework compiler (compiler), written in C++ language, and can be used to optimize the compile time (compiler-time), link time (link-time), run time (run-time), and idle time (idle-time) of programs written in arbitrary programming languages, remain open to developers, and are compatible with existing scripts. Clang is a LLVM sub-item, and can perform lexical analysis, grammar analysis, semantic analysis, intermediate code generation and other tasks.
Specifically, the step of generating the file path set may include:
monitoring the compiling process of the target program;
when the compiling process generates program content analysis information corresponding to the target program, determining a calling file referenced in the target program according to the program content analysis information;
Determining an initial file path corresponding to the calling file based on the calling file;
a set of file paths is generated from the initial file paths.
In some alternative embodiments, before the server compiles the target program, a SearchPath folder directory may be created, located under the class-tools directory, and an AutoSearchPath class file may be placed into the folder, importing the class/Basic/diagnostic.h file in AutoSearchPath.
And when compiling the target program, clang can search and traverse the plugins under the class-tools directory. The SearchPath folder directory is created under the category-tools directory, so that the AutosearchPath can be called when the category runs, and automatic retrieval of the file path can be realized.
The diagnostic is a specific execution code for automatically retrieving the needed information in the client, and can traverse and search the files needed by the target program.
For example, a listener may be built in the AutoSearchPath, when the target program to be compiled executes compilation, the listener may send a signal to be detected to the Diagnostic, and when the compiled source code is generated into an AST, the AST is first used to extract a calling file referenced by the compiled source code, and the searchpath directory of the calling file is globally detected to generate a map set as a file path set.
402. When compiling of the target program fails, the server acquires file identification information and file path set of the target calling file, and searches the file path of the target calling file based on the file path set and the file identification information to obtain a target calling file path.
The file identification information of the target calling file can be obtained from error reporting information generated by the compiling failure of the target program.
Specifically, the developer can create TXdiagnostics Engine class inherited from diagnostics Engine, rewrite the getClient, getSourceManager and getErrorrAla methods in the TXdiagnostics Engine class, judge the imported error reporting parameters and take the imported Map set (file path set).
Through inheritance and rewriting, a developer can multiplex the functions of the diagnostic engine provided by the system in an AutoSearchPath, has the capabilities of judging codes, detecting in compiling process and the like, is built in a terminal or a server, can detect which electronic device the current program is running in, detects the initialization conditions and static resources running in the electronic device and the like, and can expand new functions on the original functions of the method through rewriting.
The server can determine an initial file path of the target calling file from the file path set based on the file identification of the target calling file;
and taking the initial file path of the target calling file as the target calling file path of the target calling file.
For example, in the file path set, the storage form of the initial file path may be a string of characters, such as path 1:/Users/yonghutwo/Library/development/CoreSimulator/Devices/A2, the file identifier of the target calling file may be A2, the initial file path1 of A in the file path set may be determined according to A2, and the path1 is taken as the target calling file path.
403. And compiling the target program according to the target calling file path by the server.
For example, when the target program is compiled originally, the compiler accesses path0 to realize the call to the target calling file, and the target calling file path is determined to be path0, at this time, when the target program is compiled, the compiler accesses path0 again, and further determines the initial file path corresponding to the target calling file in the file path set, so as to avoid the problem of compiling failure caused by accidental problem.
404. When compiling the target program according to the target calling file path fails, the server searches the target calling file under the search program directory.
The server may attempt to acquire a default path of the AutoSearchPath in the program compilation configuration as a search program directory, and set an upper directory of the default path as a root directory. If the search program directory is empty, the recursive search can be further performed under the target program directory.
It will be appreciated that there may be files of different file types under the same search program directory, for example two files of the same name may be static library files, one being a class file. At this time, when the target call file is searched, it should also be determined whether the file type of the searched file is the same as the file type of the file required for compiling the target program through matching of the file type information.
405. When the target calling file is not found under the search program directory, the server searches the target calling file under the target program directory to obtain an actual file path of the target calling file.
In other alternative embodiments, there may be multiple target program directories, and in order to alleviate the programming pressure of the developer, a recursive method may be used to search for the target call file under the target program directory. That is, the step of "searching the target calling file under the target program directory to obtain the actual file path of the target calling file" may include:
Selecting an unoccupied directory from the target program directory as a current searching directory, and searching a target calling file under the current searching directory;
when the target calling file is not found under the current searching directory, the step of selecting the non-accessed directory from the target program directory as the current searching directory and searching the target calling file under the current searching directory is executed until the target calling file or the lower directory of the target program directory is searched.
The target program directory is a configuration directory of the target program, for example, the target program to be compiled is compiled into the a module, and at this time, the corresponding target program directory may be in path0/path1/path2. Compiling to the B module, the corresponding target program directory may be in path0/path1/path2/path3 or path4/path5.
406. And compiling the target program by the server according to the actual file path of the target calling file.
When the matching is successful, the thread can be scheduled to be in an operation state, and the currently searched catalogue is mapped to the corresponding field in the Map set. And compiling the target program again.
By adjusting the initial file path corresponding to the target calling file in the file path set, the condition that the target program is failed to compile due to the calling error of the target calling file can be avoided in the compiling process of the target program.
It may be appreciated that, for convenience of use of a technician, the technician may integrate the program compiling method provided by the embodiment of the present invention into a program file, or may generate a dynamic library from various library functions or program statements capable of implementing the functions of the embodiment of the present invention, so as to make a call when the program compiling is required.
For example, a dynamic library may be generated under the name SearchPath in dylib format.
The dynamic library may be defined in the compiler before program compilation, for example, by adding the-Xclang-load-Xclang PROJECT_DIR+ path (-Xclang-add-plug in-Xclang SearchPath) in the build settings-Custom Compliler Flags.
Wherein, buildSettings-Custom Compliler Flags is a selection process when adding or modifying path operation to the compiler, -Xclang-load-Xclang process_dir+ path (-Xclang-add-plug-Xclang SearchPath) is a content that needs to be input after selection. -Xclang-add-plug-Xclang SearchPath is the path of the dynamic library.
Through the setup procedure described above, the searchpath. Dylib dynamic library can be invoked when the code is compiled.
The technician may make modifications to the compiler, set the compiler to call a dynamic library before compiling the program, etc. Specifically, the technician may implement the modification to the compiler by downloading a file compression package (e.g., may be xcodeHacking. Zip for the Xcode compiler) that is capable of modifying the compiler, and copying the files in the compression package to the relevant directory of the compiler (e.g., may be copied to xcodeHacking).
Therefore, the embodiment of the invention can reduce the dependence on manpower, save manpower resources and improve the efficiency of configuring the file path in the process of program development on the basis of ensuring the accuracy of file path configuration.
In order to better implement the above method, correspondingly, the embodiment of the invention also provides a program compiling device.
Referring to fig. 5, the apparatus includes:
the set obtaining unit 501 may be configured to obtain, when compiling of the target program fails, a file path set generated during the compiling of the target program, where the file path set may include an initial file path of a calling file of the target program;
the path searching unit 502 may be configured to perform file path searching on a target call file of the target program based on the file path set, to obtain a target call file path of the target call file;
a first program compiling unit 503, configured to compile a target program according to a target calling file path;
the file searching unit 504 may be configured to search, when compiling the target program according to the target calling file path fails, the target calling file under a program directory corresponding to the target program, to obtain an actual file path of the target calling file;
The second program compiling unit 505 may be configured to compile the target program according to an actual file path of the target call file.
In some optional embodiments, the program directory corresponding to the target program may include a search program directory and a target program directory, and the file searching unit 504 may include a first file searching unit and a second file searching unit, where the first file searching unit may be configured to use an upper directory of the search program directory as a first search directory, and search the target call file under the first search directory;
and the second file searching unit can be used for searching the target calling file under the target program directory to obtain the actual file path of the target calling file when the target calling file is not searched under the first searching directory.
In some optional embodiments, the first file searching unit may be configured to use an upper directory of the search program directory as a first search directory, and perform recursive access processing on the first search directory to search the target call file under the first search directory;
and the second file searching unit can be used for carrying out recursive access processing on the target program directory so as to search the target calling file under the target program directory and obtain the actual file path of the target calling file.
In some optional embodiments, the first file searching unit may be configured to select an unaccessed directory from a lower directory of the first search directory as a current search directory, and search the target calling file under the current search directory, where the lower directory of the first search directory may include a search program directory;
when the target calling file is not found under the current searching directory, the step of selecting the non-accessed directory from the lower-level directory of the first searching directory as the current searching directory and searching the target calling file under the current searching directory is executed until the target calling file is found or the lower-level directory of the first searching directory is accessed.
In some optional embodiments, the second file searching unit may be configured to select an unoccupied directory from the target program directory as a current searching directory, and search the target calling file under the current searching directory;
when the target calling file is not found under the current searching directory, the step of selecting the non-accessed directory from the target program directory as the current searching directory and searching the target calling file under the current searching directory is executed until the target calling file or the lower directory of the target program directory is searched.
In some alternative embodiments, as shown in fig. 6, the program compiling apparatus provided by the embodiment of the present invention may further include a file information obtaining unit 506 that may be configured to obtain a file identifier and file type information of the target calling file;
correspondingly, the file searching unit 504 may be configured to search candidate files under a program directory corresponding to the target program, where a file identifier of the candidate file is the same as a file identifier of the target calling file;
and acquiring candidate file type information of the candidate file, and taking the candidate file as a target calling file when the candidate file type information is matched with the file type information.
In some optional embodiments, the program compiling apparatus provided by the embodiments of the present invention may further include a set generating unit 507, which may be configured to monitor a compiling process of the target program;
when the compiling process generates program content analysis information corresponding to the target program, determining a calling file referenced in the target program according to the program content analysis information;
determining an initial file path corresponding to the calling file based on the calling file;
a set of file paths is generated from the initial file paths.
As can be seen from the above, by the program compiling device, when the compiling of the target program fails, a file path set generated in the compiling process of the target program can be obtained, wherein the file path set includes an initial file path of a calling file of the target program, a file path search is performed on the target calling file of the target program based on the file path set to obtain a target calling file path of the target calling file, the target program is compiled according to the target calling file path, when the compiling of the target program fails according to the target calling file path, the target calling file is searched under a program directory corresponding to the target program to obtain an actual file path of the target calling file, and the target program is compiled according to the actual file path of the target calling file; when the compiling error is generated by the target program, the embodiment of the invention can determine the file path of the target calling file which can be normally compiled by the target program from the initial target calling file path and/or the program catalog corresponding to the target program, thereby reducing the dependence on manpower, saving manpower resources and improving the efficiency of configuring the file path in the process of program development on the basis of ensuring the accuracy of configuring the file path.
In addition, the embodiment of the present invention further provides an electronic device, which may be a terminal or a server, as shown in fig. 7, and shows a schematic structural diagram of the electronic device according to the embodiment of the present invention, specifically:
the electronic device may include Radio Frequency (RF) circuitry 701, memory 702 including one or more computer-readable storage media, input unit 703, display unit 704, sensor 705, audio circuitry 706, wireless fidelity (WiFi, wireless Fidelity) module 707, processor 708 including one or more processing cores, and power supply 709. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 7 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the RF circuit 701 may be used for receiving and transmitting signals during a message or a call, and in particular, after receiving downlink information of a base station, the downlink information is processed by one or more processors 708; in addition, data relating to uplink is transmitted to the base station. Typically, RF circuitry 701 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM, subscriber Identity Module) card, a transceiver, a coupler, a low noise amplifier (LNA, low Noise Amplifier), a duplexer, and the like. In addition, the RF circuit 701 may also communicate with networks and other devices through wireless communication. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications (GSM, global System of Mobile communication), general packet radio service (GPRS, general Packet Radio Service), code division multiple access (CDMA, code Division Multiple Access), wideband code division multiple access (WCDMA, wideband Code Division Multiple Access), long term evolution (LTE, long Term Evolution), email, short message service (SMS, short Messaging Service), and the like.
The memory 702 may be used to store software programs and modules, and the processor 708 may perform various functional applications and data processing by executing the software programs and modules stored in the memory 702. The memory 702 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device (such as audio data, phonebooks, etc.), and the like. In addition, the memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 702 may also include a memory controller to provide access to the memory 702 by the processor 708 and the input unit 703.
The input unit 703 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, the input unit 703 may include a touch-sensitive surface, as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations thereon or thereabout by a user using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a predetermined program. Alternatively, the touch-sensitive surface may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 708, and can receive commands from the processor 708 and execute them. In addition, touch sensitive surfaces may be implemented in a variety of types, such as resistive, capacitive, infrared, and surface acoustic waves. The input unit 703 may comprise other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 704 may be used to display information input by a user or information provided to a user and various graphical user interfaces of the electronic device, which may be composed of graphics, text, icons, video, and any combination thereof. The display unit 704 may include a display panel, which may be optionally configured in the form of a liquid crystal display (LCD, liquid Crystal Display), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay a display panel, and upon detection of a touch operation thereon or thereabout, the touch-sensitive surface is passed to the processor 708 to determine the type of touch event, and the processor 708 then provides a corresponding visual output on the display panel based on the type of touch event. Although in fig. 7 the touch sensitive surface and the display panel are implemented as two separate components for input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement the input and output functions.
The electronic device may also include at least one sensor 705, such as a light sensor, a motion sensor, and other sensors. In particular, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or backlight when the electronic device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the electronic device are not described in detail herein.
Audio circuitry 706, speakers, and a microphone may provide an audio interface between the user and the electronic device. The audio circuit 706 may transmit the received electrical signal converted from audio data to a speaker, where it is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 706 and converted into audio data, which are processed by the audio data output processor 708 for transmission to, for example, another electronic device via the RF circuit 701, or which are output to the memory 702 for further processing. The audio circuit 706 may also include an ear bud jack to provide communication of the peripheral ear bud with the electronic device.
WiFi belongs to a short-distance wireless transmission technology, and the electronic equipment can help a user to send and receive emails, browse webpages, access streaming media and the like through the WiFi module 707, so that wireless broadband Internet access is provided for the user. Although fig. 7 shows a WiFi module 707, it is to be understood that it is not a necessary component of an electronic device, and may be omitted entirely as needed within a range that does not change the essence of the invention.
The processor 708 is the control center of the electronic device, connects the various parts of the overall handset using various interfaces and lines, and performs various functions of the electronic device and processes the data by running or executing software programs and/or modules stored in the memory 702, and invoking data stored in the memory 702, thereby performing overall monitoring of the handset. Optionally, the processor 708 may include one or more processing cores; preferably, the processor 708 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 708.
The electronic device also includes a power supply 709 (e.g., a battery) for powering the various components, which may be logically connected to the processor 708 by a power management system, such as to perform functions such as managing charge, discharge, and power consumption by the power management system. The power supply 709 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the electronic device may further include a camera, a bluetooth module, etc., which will not be described herein. In particular, in this embodiment, the processor 708 in the electronic device loads executable files corresponding to the processes of one or more application programs into the memory 702 according to the following instructions, and the processor 708 executes the application programs stored in the memory 702, so as to implement various functions as follows:
when compiling of the target program fails, acquiring a file path set generated in the compiling process of the target program, wherein the file path set comprises an initial file path of a calling file of the target program;
searching a file path of a target call file of the target program based on the file path set to obtain a target call file path of the target call file;
Compiling the target program according to the target calling file path;
when compiling the target program according to the target calling file path fails, searching the target calling file under a program directory corresponding to the target program to obtain an actual file path of the target calling file;
and compiling the target program according to the actual file path of the target calling file.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present invention provides a computer readable storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform the steps of any one of the program compiling methods provided by the embodiment of the present invention. For example, the instructions may perform the steps of:
when compiling of the target program fails, acquiring a file path set generated in the compiling process of the target program, wherein the file path set comprises an initial file path of a calling file of the target program;
Searching a file path of a target call file of the target program based on the file path set to obtain a target call file path of the target call file;
compiling the target program according to the target calling file path;
when compiling the target program according to the target calling file path fails, searching the target calling file under a program directory corresponding to the target program to obtain an actual file path of the target calling file;
and compiling the target program according to the actual file path of the target calling file.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the computer-readable storage medium may comprise: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Because the instructions stored in the computer readable storage medium can execute the steps in any program compiling method provided by the embodiments of the present invention, the beneficial effects that any program compiling method provided by the embodiments of the present invention can be achieved, and detailed descriptions of the foregoing embodiments are omitted herein.
According to one aspect of the present application, there is also provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions to cause the electronic device to perform the methods provided in the various alternative implementations of the embodiments described above.
The foregoing has described in detail the program compiling method, apparatus, electronic device, storage medium and program product provided by the embodiments of the present invention, and specific examples have been applied to illustrate the principles and embodiments of the present invention, and the above description of the embodiments is only for helping to understand the method and core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present invention, the present description should not be construed as limiting the present invention.

Claims (11)

1. A program compiling method, comprising:
when compiling of a target program fails, acquiring a file path set generated in the compiling process of the target program, wherein the file path set comprises an initial file path of a calling file of the target program;
Searching a file path of a target calling file of the target program based on a file path set to obtain a target calling file path of the target calling file;
compiling the target program according to the target calling file path;
when compiling the target program according to the target calling file path fails, searching the target calling file under a program directory corresponding to the target program to obtain an actual file path of the target calling file;
and compiling the target program according to the actual file path of the target calling file.
2. The program compiling method according to claim 1, wherein the program directory corresponding to the target program includes a search program directory of a search program for performing a file path search and a target program directory of the target program;
the searching the target calling file under the program directory corresponding to the target program to obtain an actual file path of the target calling file comprises the following steps:
taking the upper-level directory of the search program directory as a first search directory, and searching the target calling file under the first search directory;
And when the target calling file is not found under the first search directory, searching the target calling file under the target program directory to obtain an actual file path of the target calling file.
3. The program compiling method according to claim 2, wherein the searching the target calling file under the first search directory by using the upper directory of the search program directory as the first search directory comprises:
the upper-level directory of the search program directory is used as a first search directory, and recursive access processing is carried out on the first search directory so as to search the target calling file under the first search directory;
searching the target calling file under the target program directory to obtain an actual file path of the target calling file, wherein the method comprises the following steps:
and carrying out recursive access processing on the target program directory so as to search the target calling file under the target program directory and obtain an actual file path of the target calling file.
4. A program compiling method according to claim 3, wherein said recursively accessing the first search directory to search the target call file under the first search directory comprises:
Selecting an unoccupied directory from a lower-level directory of the first search directory as a current search directory, and searching the target calling file under the current search directory, wherein the lower-level directory of the first search directory comprises the search program directory;
and when the target calling file is not found under the current searching directory, executing the step of selecting the non-accessed directory from the lower-level directory of the first searching directory as the current searching directory and searching the target calling file under the current searching directory until the target calling file is found or the lower-level directory of the first searching directory is accessed.
5. A program compiling method according to claim 3, wherein said recursively accessing the target program directory to find the target calling file under the target program directory to obtain an actual file path of the target calling file comprises:
selecting an unoccupied directory from the target program directory as a current searching directory, and searching the target calling file under the current searching directory;
and when the target calling file is not found under the current searching directory, executing the step of selecting the non-accessed directory from the target program directory as the current searching directory and searching the target calling file under the current searching directory until the target calling file or the lower directory of the target program directory is found.
6. The program compiling method according to claim 1, wherein the method further comprises:
acquiring file identification and file type information of the target calling file;
the searching the target calling file under the program directory corresponding to the target program comprises the following steps:
searching candidate files under a program directory corresponding to the target program, wherein the file identification of the candidate files is the same as the file identification of the target calling file;
and acquiring candidate file type information of the candidate file, and taking the candidate file as the target calling file when the candidate file type information is matched with the file type information.
7. The program compiling method according to any one of claims 1 to 6, wherein before the acquiring the file path set generated in the compiling process of the target program, the method further comprises:
monitoring the compiling process of the target program;
when the compiling process generates program content analysis information corresponding to the target program, determining the calling file referenced in the target program according to the program content analysis information;
determining an initial file path corresponding to the calling file based on the calling file;
And generating the file path set according to the initial file path.
8. A program compiling apparatus, comprising:
a set acquisition unit, configured to acquire a file path set generated in a compiling process of a target program when the compiling of the target program fails, where the file path set includes an initial file path of a calling file of the target program;
the path searching unit is used for searching the file path of the target calling file of the target program based on the file path set to obtain a target calling file path of the target calling file;
the first program compiling unit is used for compiling the target program according to the target calling file path;
the file searching unit is used for searching the target calling file under a program directory corresponding to the target program when compiling the target program according to the target calling file path fails, so as to obtain an actual file path of the target calling file;
and the second program compiling unit is used for compiling the target program according to the actual file path of the target calling file.
9. An electronic device comprising a memory and a processor; the memory stores an application program, and the processor is configured to execute the application program in the memory to perform the steps in the program compiling method according to any one of claims 1 to 7.
10. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the program compiling method of any one of claims 1 to 7.
11. A computer program product comprising a computer program or instructions which, when executed by a processor, carries out the steps of the program compiling method according to any one of claims 1 to 7.
CN202111293199.8A 2021-11-03 2021-11-03 Program compiling method, device, electronic equipment, storage medium and program product Pending CN116069333A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111293199.8A CN116069333A (en) 2021-11-03 2021-11-03 Program compiling method, device, electronic equipment, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111293199.8A CN116069333A (en) 2021-11-03 2021-11-03 Program compiling method, device, electronic equipment, storage medium and program product

Publications (1)

Publication Number Publication Date
CN116069333A true CN116069333A (en) 2023-05-05

Family

ID=86172067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111293199.8A Pending CN116069333A (en) 2021-11-03 2021-11-03 Program compiling method, device, electronic equipment, storage medium and program product

Country Status (1)

Country Link
CN (1) CN116069333A (en)

Similar Documents

Publication Publication Date Title
CN106970790B (en) Application program creating method, related equipment and system
CN108549538B (en) Code detection method and device, storage medium and test terminal
CN106502703B (en) Function calling method and device
CN110716715A (en) Application program development method, device, equipment and medium
CN108536594B (en) Page testing method and device and storage equipment
CN108595218B (en) Method and device for loading dynamic library of system
CN105630685A (en) Method and device for testing program interface
CN109800030B (en) Application program running method and device and terminal
CN111078556B (en) Application testing method and device
CN114185491B (en) Partition file downloading method and device, storage medium and computer equipment
CN109933381A (en) A kind of loading method and device of kernel
CN110489679B (en) Browser kernel processing method and device and storage medium
CN108984374B (en) Method and system for testing database performance
CN115469937A (en) Plug-in operation method and device, electronic equipment and storage medium
CN114115895A (en) Code query method and device, electronic equipment and storage medium
CN109145598B (en) Virus detection method and device for script file, terminal and storage medium
CN103309677B (en) Built-in resource management, device and terminal
CN108664389B (en) Test method, test device and terminal
CN110032394B (en) Analysis method and device for passive code file and storage medium
CN106230919B (en) File uploading method and device
CN112328304A (en) Script adaptation method, system, equipment and computer storage medium
CN113742716B (en) Code running method, device, electronic equipment, storage medium and program product
CN114490307B (en) Unit testing method and device and storage medium
CN111736839A (en) Compiling and linking method and device
CN116069333A (en) Program compiling method, device, electronic equipment, storage medium and program product

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