Method for compiling and compiler
A compiling method and code technology, applied in program control design, instrument, electrical digital data processing, etc., can solve the problems that the target program cannot get better copyright protection and the password is easy to be cracked, so as to achieve good copyright protection and reduce workload , the effect of improving the effectiveness
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] In order to ensure that the copyright of the compiled object code is better protected, the embodiment of the present invention provides a compiling method, such as figure 1 As shown, the method includes:
[0028] 101. The compilation process needs to preprocess the source program, and perform lexical analysis, syntax analysis, and semantic analysis on the preprocessed source program, and then convert the source program into intermediate code. This embodiment also needs to follow the preset Rules determine the insertion point of the security device verification code in the intermediate code of the source program;
[0029] Wherein, the above preset rule is to perform lexical analysis, syntax analysis and semantic analysis on the source program during the process of converting the source program into the intermediate code, so as to determine the insertion point of the security device verification code in the intermediate code of the source program.
[0030] 102. After det...
Embodiment 2
[0036] In order to introduce the technical solution adopted by the present invention more clearly, the present invention will be further described in detail in conjunction with the compiling process under the situation of adopting USB Key as the security device below, but the present invention can also include the embodiments of other security devices. The examples are not intended to limit the present invention.
[0037] In this embodiment, the USB Key verification code is inserted in the process of converting the intermediate code into assembly code to achieve the purpose of making the compiled object code protected by the USB Key, such as image 3 As shown, the specific implementation includes the following:
[0038] 301. Perform preprocessing on the source program. The preprocessing process mainly analyzes header files and precompiled statements included in the source program to obtain a preprocessed source program. The source program may be a source program written in a ...
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