Device and method for project migration among different operating platforms
An operation platform and engineering technology, applied in the direction of program control device, program control design, instrument, etc., can solve problems such as error-prone, troublesome and time-consuming, complicated makefile, etc., and achieve the effect of less error-prone, less time-consuming, and simple implementation methods
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0037] This embodiment provides a processing flow of an engineering transplantation method between different operating platforms such as figure 1 As shown, the following processing steps are included:
[0038] Step S110, execute the makefile source file organization structure file of the C / C++ project under the linux / unix platform with the make integrated compilation tool, the make integrated compilation tool utilizes the gcc compilation tool to execute the above-mentioned makefile source file organization structure file, the makefile source file organization structure After the file is executed, the output result is obtained, and the output result is redirected to a text file.
[0039] make is an important program for compiling and maintaining software. It can automatically recompile and link the target code according to the modification of the program file to ensure that the target code is always composed of its latest files. Based on it, it can be automatically compiled, wh...
Embodiment 2
[0056] Method of transplanting C / C++ project under linux / unix to codeblock project under windows platform
[0057] Take OpenSSL-1.0.1e ported as codeblock project as an example:
[0058] 1) Execute the perl compilation script, call the make tool to execute the makefile to obtain the output redirection file content is excerpted as follows:
[0059]
[0060]
[0061]
[0062]
[0063] 2) Analyze the compilation result with a python script, according to "ar r out\libcrypto.a * "( * Indicates the omitted .o file name) extracts all the .o files needed to generate libcrypto.a.
[0064] 3) Analyze the compilation result with a python script, according to "gcc-o tmp\ * .o"( * Indicates the name of a .o file), and extracts the set of correspondences between all .o and .c file paths.
[0065] 4) Use the python script to analyze the obtained .c file, extract all required .h files, and find the corresponding directory path in the openssl directory.
[0066] 5) Use codebl...
Embodiment 3
[0076] This embodiment provides a kind of engineering transplantation device between different operating platforms, its specific implementation structure is as shown in Figure 3, specifically can include the following modules:
[0077] makefile execution module 310, used to execute the makefile of the C / C++ project under the linux / unix platform with the make integrated compilation tool, obtain the output result after the completion of the execution of the makefile file, and redirect the output result to a text file ;
[0078] The source file acquisition module 320 is used to analyze the text file, and execute the correspondence between the .o intermediate file and the .a target file and the .c source file to the .o intermediate file processed by the make integrated compilation tool in the process of executing the makefile. The corresponding relationship is found, and all the source files required to reconstruct the project file corresponding to the .a target file are obtained;...
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