Source code object compiling method and device and computer
A source code, object technology, applied in the computer field, can solve problems such as low compilation efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0043] Based on the above application scenarios, the present invention provides a method for compiling source code objects, in which the type of each object is set in advance according to the operation code of each object in the source code, for example, it can be used as the operation code associated with an object in the source code When it is a serial code, set the object type of the object to be operated by only one thread at a time; when the operation code associated with an object is a parallel code, set the object type of the object to be operated by multiple threads at a time The type of simultaneous operation; based on the above-mentioned type division of objects in the source code, for an object to be compiled in the source code, such as figure 2 As shown, the following methods can be used to compile the object:
[0044] Step S21: the compiler allocates a counter for the object to be compiled;
[0045] The running terminal of the compiler and the above-mentioned co...
Embodiment 2
[0052] In the embodiment of the present invention, the objects in the source code written by programmers can have a parent-child relationship, and the child objects can inherit the characteristics of the parent object, so the programmer can only define the object type of the parent object when writing the source code, and the Child objects can inherit the object type of the corresponding parent object, for example, when programmers write source code, such as image 3 As shown, three objects are set, namely object A, object B and object C, and object A is the parent object, object B and object C are the child objects of object A, then object B and object C and object A The types are consistent, that is, when the object type of object A is the type operated by only one thread at a time, the object types of object B and object C are also the type operated by only one thread at a time; while in object A When the object type is the type that is operated by multiple threads at the s...
Embodiment 3
[0062] In the embodiment of the present invention, when programming the source code, the programmer can specifically set the object identifier for each object in the source code. For example, when the operation code associated with an object in the source code is a parallel code, the specific The object identifier of the object is set as the first identifier, the first identifier can indicate that the object type of the current object is a type operated by multiple threads at the same time, and the first identifier can be specifically the @safe character, etc. identification; and when the operation code associated with an object in the source code is a serial code, the object identification of the object can be specifically set as a second identification, and the second identification can indicate that the object type of the current object is in a The type that is only operated by one thread at a time, the second flag can be specifically set by programmers.
[0063] Certainly,...
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