A method, device, electronic device and storage medium for generating instruction stream

By setting the generation weight of the instruction information to be eliminated in the configuration file to 0, the problem of lack of flexibility in the generation of instruction streams in the prior art is solved, and the precise removal and flexibility of instruction streams are achieved.

CN118626152BActive Publication Date: 2024-11-01BEIJING INSTITUTE OF OPEN SOURCE CHIP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411112125.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-11-01
Estimated Expiration
2044-08-14

AI Technical Summary

Technical Problem

The prior art cannot effectively remove specific instruction information in configuration files, resulting in lack of flexibility in instruction stream generation.

Method used

Configure the instruction information to be generated in the configuration file, and set the generation weight of the instruction information to be eliminated to 0, so that the instruction information is automatically eliminated during the generation of the instruction flow, improving the flexibility of the instruction flow.

Benefits of technology

It realizes accurate elimination of instruction information in configuration files, improves the flexibility and efficiency of instruction stream generation, and is suitable for scenarios such as open source tools and instruction sequence generators.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626152B_ABST
    Figure CN118626152B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention provide a method, device, electronic device and storage medium for generating an instruction stream, and relate to the field of computer technology. The method comprises: configuring first instruction information to be generated in a configuration file; configuring second instruction information to be eliminated from the first instruction information in the configuration file; setting the generation weight of the second instruction information to 0 in the configuration file; and generating an instruction stream including the first instruction information after eliminating the second instruction information based on the configuration file. In the configuration file, the present application sets the generation weight of the second instruction information to 0, and then in the subsequent process of generating the instruction stream, the second instruction information is automatically not parsed, so that the second instruction information is eliminated after being included in the configuration file, and an instruction stream is generated after eliminating the second instruction information, thereby improving the flexibility of generating the instruction stream.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method for generating an instruction stream, a device for generating an instruction stream, an electronic device and a storage medium. Background Art

[0002] An instruction stream is a sequence of instructions executed by a computer. In the process of forming an instruction stream, the required instruction information is mainly included in the configuration file to generate the instruction stream.

[0003] However, currently, it is not possible to remove specific instruction information from the configuration file, that is, after certain instruction information is included in the configuration file, it is not possible to form an instruction stream without the instruction information, resulting in a lack of flexibility in the generation of the current instruction stream. Summary of the invention

[0004] In view of the above problems, an embodiment of the present invention is proposed to provide a method for generating an instruction stream that overcomes the above problems or at least partially solves the above problems, so as to enhance the flexibility of generating the instruction stream.

[0005] In a first aspect, the present invention provides a method for generating an instruction stream, comprising:

[0006] Configuring the first instruction information to be generated in the configuration file;

[0007] Configuring, in the configuration file, second instruction information to be removed from the first instruction information;

[0008] In the configuration file, the generation weight of the second instruction information is set to 0;

[0009] Based on the configuration file, an instruction stream including the first instruction information after the second instruction information is removed is generated.

[0010] In a second aspect, the present invention provides an instruction stream generating device, comprising:

[0011] A first configuration module, used to configure first instruction information to be generated in a configuration file;

[0012] A second configuration module, used to configure in the configuration file second instruction information to be removed from the first instruction information;

[0013] A setting module, used for setting the generation weight of the second instruction information to 0 in the configuration file;

[0014] A generation module is used to generate, based on the configuration file, an instruction stream including the first instruction information after the second instruction information is removed.

[0015] In a third aspect, the present invention provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned instruction stream generation method when executing the program.

[0016] In a fourth aspect, the present invention provides a readable storage medium, which enables the electronic device to execute the above-mentioned instruction stream generation method when the instructions or transactions in the storage medium are executed by the processor of the electronic device.

[0017] In a fifth aspect, the present invention provides a computer program product, comprising instructions or transactions, which, when executed by a processor in an electronic device, enable the electronic device to execute any one of the aforementioned instruction stream generation methods.

[0018] The present invention includes the following advantages:

[0019] In the present application, in the configuration file, the generation weight of the second instruction information is set to 0, so that in the subsequent process of generating the instruction stream, the second instruction information is automatically not parsed, so that after the second instruction information is included in the configuration file, it is removed, and an instruction stream is generated without the second instruction information, thereby improving the flexibility of generating the instruction stream. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0021] Figure 1 A flow chart showing the steps of a first instruction stream generation method embodiment of the present invention;

[0022] Figure 2 A flow chart showing the steps of a second instruction stream generation method embodiment of the present invention;

[0023] Figure 3 A flowchart showing a third instruction stream generation method embodiment of the present invention;

[0024] Figure 4 A structural block diagram showing an embodiment of an instruction stream generating device of the present invention;

[0025] Figure 5 It is a structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0027] One of the core concepts of an embodiment of the present invention is that, in the configuration file, the generation weight of the second instruction information is set to 0, so that in the subsequent process of generating the instruction stream, the second instruction information is automatically not parsed, so that after the second instruction information is included in the configuration file, it is eliminated, and an instruction stream is generated without the second instruction information, thereby improving the flexibility of generating the instruction stream.

[0028] Reference Figure 1 , the instruction stream generation method may specifically include the following steps.

[0029] Step 101: Configure the first instruction information to be generated in the configuration file.

[0030] A configuration file is a computer file used to configure parameters and initial settings for a computer program. The first instruction information to be generated refers to the instruction information to be included in the subsequently generated instruction stream. There is no specific limit on the number of the first instruction information.

[0031] The first instruction information to be generated may be configured one by one in the configuration file, or may be configured in batches in the configuration file, and there is no specific limitation on this.

[0032] Step 102: configuring in the configuration file second instruction information to be removed from the first instruction information.

[0033] The second instruction information to be removed refers to part of the first instruction information that has been configured in the configuration file and is to be removed. The number of the second instruction information is not specifically limited.

[0034] Step 103: In the configuration file, the generation weight of the second instruction information is set to 0.

[0035] In this configuration file, the generation weight of the second instruction information to be eliminated is set to 0. Then, in the subsequent process of generating the instruction stream, the second instruction information will not be automatically parsed. After the second instruction information is included in the configuration file, it will be eliminated, and an instruction stream without the second instruction information will be generated, thereby improving the flexibility of generating the instruction stream.

[0036] It should be noted that, in the configuration file, the remaining instruction information in the first instruction information except the second instruction information is instruction information that needs to be retained, and the generation weight of these instruction information is greater than 0.

[0037] Step 104: Based on the configuration file, generate an instruction stream including the first instruction information and excluding the second instruction information.

[0038] This step mainly generates an instruction stream based on the first instruction information with a weight greater than 0 generated in the configuration file, and removes the second instruction information after it is included in the configuration file to generate an instruction stream without the second instruction information, thereby improving the flexibility of generating the instruction stream.

[0039] For example, the instruction stream generation method can be applied in some open source tool scenarios to improve flexibility. The instruction stream generation method can be applied to an instruction sequencer, which is not specifically limited.

[0040] Optionally, the first instruction information in the present application may include: instructions, and / or, operands of instructions. Instructions are the basic units in a computer program, which tell the computer's processor what operation to perform. Each instruction contains operands. The operand is the data part of the instruction that participates in the operation, which specifies the data object required when the instruction is executed. The present application can perform elimination operations on instructions and operands of instructions, and has a wider scope of application and is more flexible.

[0041] Optionally, the operands of the instructions in the present application may include: registers, and / or immediate numbers. The operand is directly included in the instruction as part of the instruction. This type of operand does not require additional memory access to obtain its value, which is an immediate number. The operand is stored in a register, which is a high-speed storage unit used to temporarily store information such as data and instruction addresses. Using a register as an operand can speed up data access. The present application can perform elimination operations on both immediate numbers and registers, and has a wider range of applications and is more flexible.

[0042] Reference Figure 2 , the instruction stream generation method may specifically include the following steps.

[0043] Step 201: configure the attributes of the first instruction information to be generated in the configuration file; one first instruction information corresponds to at least one of the attributes.

[0044] The attribute here may refer to characteristic information such as the type of the first instruction information. For example, the instruction information may be an instruction, and the attribute of the instruction may be: integer, floating point, floating point conversion type, jump type, etc. One first instruction information corresponds to at least one attribute. There is no limit on the specific number of attributes corresponding to one instruction information.

[0045] The attributes of the first instruction information to be generated are configured in the configuration file, and the instruction stream generated subsequently may include the first instruction information with the above attributes.

[0046] Here, the configuration of batches of first instruction information can be achieved through the attributes of the instruction information, and the configuration efficiency is high.

[0047] Step 202: Configure the attributes to be removed in the configuration file.

[0048] The attributes to be removed here are some of the attributes that are already configured in the configuration file and are to be removed.

[0049] Step 203: determine all the first instruction information that only contains the attributes to be eliminated in the first instruction information as the second instruction information to be eliminated.

[0050] All first instruction information that only contains the attribute to be eliminated in the first instruction information is determined as the second instruction information to be eliminated. That is to say, if a first instruction information corresponds to attribute A and attribute B, and the attribute to be eliminated configured in the configuration file is attribute A, then the first instruction information is not the second instruction information to be eliminated. If a first instruction information corresponds to attribute A and attribute B, and the attributes to be eliminated configured in the configuration file are attribute A and attribute B, then the first instruction information is the second instruction information to be eliminated. Here, batch elimination configuration can be achieved through the attributes of the instruction information, and the elimination configuration efficiency is high.

[0051] The attributes to be removed may be stored in data structures such as arrays, queues, and collections, and there is no specific limitation on this.

[0052] Optionally, the method may further include: configuring in the configuration file the name of the second instruction information to be removed from the first instruction information. Normally, one first instruction information corresponds to only one name. Here, precise removal configuration of the second instruction information is implemented. That is, in the case of batch removal through attributes, precise removal configuration is performed again to adapt to the scenario of only removing part of the instruction information in a certain attribute, thereby further improving the flexibility of instruction stream generation.

[0053] The name of the second instruction information to be removed from the first instruction information may be stored in a data structure such as an array, a queue, or a collection, and no specific limitation is given to this.

[0054] Step 204: In the configuration file, set the generation weight of the second instruction information to 0.

[0055] Step 205: Based on the configuration file, generate an instruction stream including the first instruction information and excluding the second instruction information.

[0056] Here, steps 204 to 205 can refer to the aforementioned steps 103 and 104, and can achieve the same or similar beneficial effects. In order to avoid repetition, they are not described again here.

[0057] Optionally, before the aforementioned step 201, the method may further include: establishing a correspondence table between instruction information and attributes, querying the attributes of the first instruction information to be generated from the correspondence table, and quickly finding the attributes of the first instruction information to be generated through the correspondence table, and then configuring the attributes of the first instruction information to be generated in the configuration file.

[0058] It should be noted that Figure 2 The method for generating the instruction stream shown can be applied to the generation of the instruction stream corresponding to the instruction information with attributes. For example, for the instruction information for which the attributes are set, such as instructions and registers, the present application can configure in batches through the attributes, and the configuration efficiency is high. Moreover, in the elimination process, on the basis of batch elimination through attributes, the name of the instruction information can be further accurately eliminated.

[0059] Reference Figure 3 , the instruction stream generation method may specifically include the following steps.

[0060] Step 301: configure the name of the first instruction information to be generated in the configuration file.

[0061] Normally, one first instruction information corresponds to only one name, and here the precise configuration of the first instruction information is achieved.

[0062] It should be noted that some first instruction information without attributes can also be configured here, which further improves the flexibility of instruction stream generation and expands the scope of application.

[0063] Step 302: Configure the name of the second instruction information to be removed from the first instruction information in the configuration file.

[0064] In the configuration file, the name of the second instruction information to be removed from the first instruction information is configured, and here the accurate removal configuration of the second instruction information is realized. Similarly, some first instruction information without set attributes can also be removed here, further improving the flexibility of instruction stream generation and expanding the scope of application.

[0065] The name of the second instruction information to be removed from the first instruction information may be stored in a data structure such as an array, a queue, or a collection, and no specific limitation is given to this.

[0066] Step 303: In the configuration file, the generation weight of the second instruction information is set to 0.

[0067] Step 304: Based on the configuration file, generate an instruction stream including the first instruction information after removing the second instruction information.

[0068] Here, steps 303 to 304 may refer to the aforementioned steps 103 and 104, and can achieve the same or similar beneficial effects. To avoid repetition, they will not be described again here.

[0069] It should be noted that Figure 3 The method for generating the instruction stream shown can be applicable to the generation of the instruction stream corresponding to the instruction information with attributes, or it can be applicable to some instruction information without setting attributes. For example, for instruction information with attributes set for instructions, registers, etc., the present application can accurately configure the instruction information with attributes through the name of the instruction information. The present application can also realize the elimination of instruction information for instruction information without setting attributes, which has a wide range of applications and is more flexible. For example, for immediate values ​​that may not have attributes set for them, they can be accurately eliminated directly by name.

[0070] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0071] Reference Figure 4 , Figure 4 A structural block diagram of an embodiment of an instruction stream generation device of the present invention is shown, which may specifically include the following modules: a first configuration module 401, used to configure first instruction information to be generated in a configuration file; a second configuration module 402, used to configure second instruction information to be removed from the first instruction information in the configuration file; a setting module 403, used to set the generation weight of the second instruction information to 0 in the configuration file; a generation module 404, used to generate an instruction stream including the first instruction information after removing the second instruction information based on the configuration file.

[0072] Optionally, the first configuration module 401 is specifically used to: configure the attributes of the first instruction information to be generated in the configuration file; one first instruction information corresponds to at least one of the attributes.

[0073] The second configuration module 402 is specifically configured to: configure the attributes to be removed in the configuration file; and determine all the first instruction information that only contains the attributes to be removed in the first instruction information as the second instruction information to be removed.

[0074] Optionally, the second configuration module 402 is further used to: configure in the configuration file a name of the second instruction information to be removed from the first instruction information.

[0075] Optionally, the first configuration module 401 is specifically used to: configure the name of the first instruction information to be generated in a configuration file.

[0076] The second configuration module 402 is specifically used to configure the name of the second instruction information to be removed from the first instruction information in the configuration file.

[0077] Optionally, the instruction stream generating device may further include: an establishing module, used to establish a correspondence table between instruction information and attributes; and a query module, used to query the attributes of the first instruction information to be generated from the correspondence table.

[0078] Optionally, the first instruction information includes: an instruction, and / or an operand of the instruction; and / or,

[0079] The operands of the instruction include: registers, and / or immediate values.

[0080] The present application is further explained below with reference to specific embodiments.

[0081] In this embodiment, the first instruction information is an instruction. The first step is to establish a correspondence table between instruction information and attributes. The result of the first step is as described in Table 1 below. In Table 1 below, the first column is the name of the instruction information, the first row is the attribute category of the instruction information, and the yes in Table 1 means that the instruction information has the attribute of the column where the yes is located. There are 4 attributes in Table 1, specifically: INT (integer type), FP (floating point type), FCVT (floating point conversion type), and JMP (jump type).

[0082] Table 1: Correspondence between command information and attributes

[0083]

[0084] The second step is to query the attributes of the first instruction information to be generated from the corresponding table. The attributes of the first instruction information to be generated are configured as FP (floating point type) and FCVT (floating point conversion type) in the configuration file. That is to say, the first instruction information to be generated in the configuration file is: FADD_D, FADD_S, FCLASS_D, FCLASS_S, FCVT_D_L, FCVT_D_LU, FCVT_D_S, FCVT_D_W, FCVT_D_WU, a total of 9 instructions.

[0085] The third step is to configure the attribute to be eliminated in the configuration file. The attribute to be eliminated is FP, that is, all the first instruction information that only contains the attribute to be eliminated in the above-mentioned first instruction information is determined as the second instruction information to be eliminated. In the above-mentioned first instruction information, the first instruction information that only contains the FP attribute is: FADD_D and FADD_S, so the first instruction information after elimination in the third step is FCLASS_D, FCLASS_S, FCVT_D_L, FCVT_D_LU, FCVT_D_S, FCVT_D_W, FCVT_D_WU, a total of 7 instructions.

[0086] The fourth step is to configure the name of the second instruction information to be further removed from the first instruction information in the configuration file. The names of the second instruction information to be further removed are FCLASS_D, FCLASS_S and FCVT_D_L. The first instruction information after further removing the second instruction information from the first instruction information in the fourth step is FCVT_D_LU, FCVT_D_S, FCVT_D_W and FCVT_D_WU, a total of 4 instructions.

[0087] Step 5: Based on the configuration file in step 4, generate an instruction stream including the first instruction information after removing the second instruction information. This step is to generate an instruction stream including FCVT_D_LU, FCVT_D_S, FCVT_D_W and FCVT_D_WU.

[0088] Figure 5 is a structural diagram of an electronic device provided by an embodiment of the present invention. Figure 5 The present invention also provides an electronic device, see Figure 5 , including: a processor 501, a memory 502, and a computer program 5021 stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of each embodiment of the above-mentioned instruction stream generation are implemented.

[0089] The present invention also provides a readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the steps of each embodiment of the above-mentioned instruction stream generation method.

[0090] The present invention also provides a computer program product, including instructions or transactions, which, when executed by a processor in an electronic device, enable the electronic device to execute any step of the aforementioned instruction stream generation method embodiments.

[0091] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0092] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0093] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data transmission terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data transmission terminal device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0094] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data transmission terminal device to operate in a predictable manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0095] These computer program instructions can also be loaded onto a computer or other programmable data transmission terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0096] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0097] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0098] The above is a detailed introduction to a method and device for generating an instruction stream, an electronic device and a storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for a person skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for generating an instruction stream, It is characterized in that include: Configuring the first instruction information to be generated in the configuration file; Configuring, in the configuration file, second instruction information to be removed from the first instruction information; In the configuration file, the generation weight of the second instruction information is set to 0; Based on the configuration file, in the process of generating the instruction stream, the second instruction information is not parsed to generate the instruction stream including the first instruction information after the second instruction information is removed.

2. The method for generating an instruction stream according to claim 1, It is characterized in that The configuring the first instruction information to be generated in the configuration file includes: Configuring the attributes of the first instruction information to be generated in the configuration file; one of the first instruction information corresponds to at least one of the attributes; The configuring in the configuration file the second instruction information to be removed from the first instruction information comprises: Configuring the attributes to be removed in the configuration file; All the first instruction information that only includes the attributes to be eliminated in the first instruction information are determined as the second instruction information to be eliminated.

3. The method for generating an instruction stream according to claim 2, It is characterized in that The configuring in the configuration file the second instruction information to be removed from the first instruction information further includes: The name of the second instruction information to be removed from the first instruction information is configured in the configuration file.

4. The method for generating an instruction stream according to any one of claims 1 to 3, It is characterized in that The configuring the first instruction information to be generated in the configuration file includes: Configure the name of the first instruction information to be generated in the configuration file; The configuring in the configuration file the second instruction information to be removed from the first instruction information comprises: The name of the second instruction information to be removed from the first instruction information is configured in the configuration file.

5. The method for generating an instruction stream according to claim 2 or 3, It is characterized in that The method further comprises: Establish a correspondence table between instruction information and attributes; The attribute of the first instruction information to be generated is queried from the correspondence table.

6. The method for generating an instruction stream according to claim 1, It is characterized in that The first instruction information includes: an instruction, and / or an operand of the instruction; and / or, The operands of the instruction include: registers, and / or immediate values.

7. A device for generating an instruction stream, It is characterized in that include: A first configuration module, used to configure first instruction information to be generated in a configuration file; A second configuration module, used to configure in the configuration file second instruction information to be removed from the first instruction information; A setting module, used for setting the generation weight of the second instruction information to 0 in the configuration file; A generating module is used for not parsing the second instruction information in the process of generating an instruction stream based on the configuration file, so as to generate an instruction stream including the first instruction information after removing the second instruction information.

8. An electronic device, It is characterized in that include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the instruction stream generation method according to any one of claims 1 to 6 when executing the program.

9. A readable storage medium, It is characterized in that When the instructions or transactions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method for generating an instruction stream according to any one of claims 1 to 6.

10. A computer program product, It is characterized in that The invention comprises instructions or transactions, which, when executed by a processor in an electronic device, cause the electronic device to execute the method for generating an instruction stream according to any one of claims 1 to 6.