Method and device for reducing instruction jumps
By optimizing the natural cycle, transferring it to the same instruction block and filling in empty instructions, the instruction jump problem caused by the natural cycle in the processor is solved and the system operating efficiency is improved.
Patent Information
- Application Number
- CN202010304291.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-17
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-04-17
AI Technical Summary
When existing processors execute programs, there are many instruction jumps caused by natural cycles, which results in high time costs and reduces system operating efficiency.
By fetching the instruction sequence from memory, optimizing the natural cycle, transferring it to the same instruction block, filling empty instructions when necessary, updating the instruction sequence and PC value, and reducing the number of load times of the instruction block.
It effectively reduces jumps caused by natural cycles, reduces program execution time, and improves system operating efficiency.
Smart Images

Figure CN113535231B
Abstract
Description
Technical Field
[0001] The present application relates to the field of processor technology, and in particular to a method and device for reducing instruction jumps. Background Art
[0002] With the development of science and technology, the functions supported by terminal devices are becoming more and more powerful, and the programs processed by the processors in terminal devices are becoming more and more complex. The processor can usually issue and execute multiple instructions at the same time in one clock cycle to achieve higher performance. However, during the operation of the processor, there may be a large number of natural loops. If some instructions in the natural loop are not in the currently executed instruction block, the processor needs to transfer the instruction block to load the target instruction block into the instruction storage unit to execute the target instruction, which makes the processor time cost very high. Therefore, how to reduce the jumps caused by natural loops, reduce the execution time of the program, and thus improve the system operation efficiency is a problem that needs to be solved urgently.
[0003] Application Contents
[0004] The embodiments of the present application provide a method and device for reducing instruction jumps, which can reduce jumps caused by natural loops, reduce program execution time, and thus improve system operation efficiency.
[0005] In a first aspect, an embodiment of the present application provides a method for reducing instruction jumps, the method comprising:
[0006] Obtain an instruction sequence from a memory, wherein the instruction sequence includes n instruction blocks, each instruction block includes at least one instruction, and n is a positive integer greater than 1;
[0007] A first optimized loop is obtained from the instruction sequence. When the loops in the first optimized loop are distributed in the i-th instruction block and the i+1-th instruction block, the first optimized loop is transferred to the i+1-th instruction block. The first optimized loop is a natural loop that occupies a storage space less than or equal to the storage space occupied by the i+1-th instruction block, and i is a positive integer less than n.
[0008] In a possible embodiment, the method further includes:
[0009] When the instructions in the first optimization loop are distributed in the ith instruction block and the (i+1)th instruction block, empty instructions are filled at the address of the first optimization loop in the ith instruction block.
[0010] In a possible embodiment, after transferring the first optimization loop to the (i+1)th instruction block, the method further includes:
[0011] The instruction sequence and the PC values and addresses of the instructions in the instruction sequence are updated; and the size of n is determined according to the updated instruction sequence.
[0012] In a possible embodiment, the method further includes:
[0013] Marking a loop to be optimized in the instruction sequence, wherein the loop to be optimized is a natural loop stored in a continuous storage space;
[0014] The first optimization loop is searched from the marked loops to be optimized.
[0015] In a possible embodiment, the method further includes:
[0016] The storage space occupied by any instruction block among the n instruction blocks is determined according to the storage space of the instruction storage unit, and the instruction storage unit includes a first instruction storage unit and / or a second instruction storage unit.
[0017] Further, in the case where the instruction storage unit includes a second instruction storage unit, the method further includes:
[0018] Inserting a parameter passing instruction and a related instruction after the last instruction of the i-th instruction block, wherein the parameter passing instruction is used to transmit the address of the i+1-th instruction block to the related instruction, and the related instruction is used to load the i+1-th instruction block into the second instruction storage unit;
[0019] The storage space occupied by any instruction block of the n instruction blocks is determined according to the storage space of the instruction storage unit, including:
[0020] The storage space occupied by any instruction block in the n instruction blocks is determined according to the storage space of the second instruction storage unit and the storage space occupied by the parameter passing instruction and the related instruction.
[0021] In a possible embodiment, the second instruction storage unit includes a first storage unit and a second storage unit, the first storage unit is used to store an instruction block among the n instruction blocks, and the second storage unit is used to store the parameter passing instruction and the related instructions;
[0022] The storage space occupied by any instruction block of the n instruction blocks is determined according to the storage space of the instruction storage unit, including:
[0023] The storage space occupied by any instruction block among the n instruction blocks is determined according to the storage space of the first storage unit in the second instruction storage unit.
[0024] In a second aspect, an embodiment of the present application provides a device for reducing instruction jumps, the device comprising:
[0025] An acquisition module, configured to acquire an instruction sequence from a memory, wherein the instruction sequence includes n instruction blocks, each instruction block includes at least one instruction, and n is a positive integer greater than 1;
[0026] The acquisition module is further used to acquire a first optimization loop from the instruction sequence;
[0027] A transfer module is used to transfer the first optimization loop to the i+1th instruction block when the instructions in the first optimization loop are distributed in the i-th instruction block and the i+1-th instruction block, the first optimization loop is a natural loop that occupies a storage space less than or equal to the storage space occupied by the i+1-th instruction block, and i is a positive integer less than n.
[0028] In a possible embodiment, the device further includes:
[0029] A filling module is used to fill empty instructions at the address of the first optimization loop in the i-th instruction block when the instructions in the first optimization loop are distributed in the i-th instruction block and the i+1-th instruction block.
[0030] In a possible embodiment, after transferring the first optimization loop to the (i+1)th instruction block, the apparatus further includes:
[0031] An update module, used for updating the instruction sequence and the PC value and address of the instructions in the instruction sequence;
[0032] A determination module is used to determine the size of n according to the updated instruction sequence.
[0033] In a possible embodiment, the device further includes:
[0034] A marking module, used for marking a loop to be optimized in the instruction sequence, wherein the loop to be optimized is a natural loop stored in a continuous storage space;
[0035] A search module is used to search the first optimization loop from the marked loops to be optimized.
[0036] In a possible embodiment, the determining module is further used to:
[0037] The storage space occupied by any instruction block among the n instruction blocks is determined according to the storage space of the instruction storage unit, and the instruction storage unit includes a first instruction storage unit and / or a second instruction storage unit.
[0038] In a possible embodiment, when the instruction storage unit includes a second instruction storage unit, the device further includes:
[0039] an insertion module, configured to insert a parameter passing instruction and a related instruction after the last instruction of the i-th instruction block, wherein the parameter passing instruction is used to transmit the address of the i+1-th instruction block to the related instruction, and the related instruction is used to load the i+1-th instruction block into the second instruction storage unit;
[0040] The determination module is specifically used to determine the storage space occupied by any instruction block among the n instruction blocks based on the storage space of the second instruction storage unit and the storage space occupied by the parameter passing instruction and the related instructions.
[0041] In a possible embodiment, the second instruction storage unit includes a first storage unit and a second storage unit, the first storage unit is used to store an instruction block among the n instruction blocks, and the second storage unit is used to store the parameter passing instruction and the related instructions;
[0042] The determination module is specifically used to determine the storage space occupied by any instruction block among the n instruction blocks according to the storage space of the first storage unit in the second instruction storage unit.
[0043] In a third aspect, an embodiment of the present application provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and when the processor executes the computer program, it implements some or all of the steps described in the first aspect of the embodiment of the present application.
[0044] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which includes a computer program for storing data exchange, and when the computer program is executed by a processor, implements some or all of the steps described in the first aspect of the embodiment of the present application.
[0045] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiment of the present application. The computer program product may be a software installation package.
[0046] Implementing the embodiments of the present application has at least the following beneficial effects:
[0047] The embodiment of the present application provides a method and device for reducing instruction jumps, by obtaining an instruction sequence from a memory, obtaining a first optimization loop from the instruction sequence, and transferring the first optimization loop to the i+1th instruction block when the instructions in the first optimization loop are distributed in the i-th instruction block and the i+1-th instruction block. The method can transfer the instructions in the first optimization loop to an instruction block, so that the first optimization loop can be loaded into the instruction storage unit at one time, thereby reducing the jump caused by the natural loop, reducing the execution time of the program, and improving the system operation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0049] Figure 1 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application;
[0050] Figure 2 It is a flowchart of a method for reducing instruction jumps provided by an embodiment of the present application;
[0051] Figure 3A It is a schematic diagram of a flow chart for marking a cycle to be optimized provided in an embodiment of the present application;
[0052] Figure 3B is another schematic diagram of a flow chart for marking a cycle to be optimized provided in an embodiment of the present application;
[0053] Figure 4 It is another flowchart diagram of reducing instruction jumps provided by an embodiment of the present application;
[0054] Figure 5A It is a schematic diagram of a storage space of an instruction storage unit provided in an embodiment of the present application;
[0055] Figure 5B It is a schematic diagram of storage space of another instruction storage unit provided in an embodiment of the present application;
[0056] Figure 5C It is a schematic diagram of storage space of another instruction storage unit provided in an embodiment of the present application;
[0057] Figure 6 It is a schematic diagram of an original program provided in an embodiment of the present application;
[0058] Figure 7It is a schematic diagram of a program divided according to an embodiment of the present application;
[0059] Figure 8 This is a schematic diagram after program processing provided by an embodiment of the present application;
[0060] Fig. 9A It is a block diagram of the functional units of a device for reducing instruction cycles provided by an embodiment of the present application;
[0061] Fig. 9B This is a block diagram of the functional units of another device for reducing instruction cycles provided in an embodiment of the present application. DETAILED DESCRIPTION
[0062] 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.
[0063] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0064] In order to better understand the solutions of the embodiments of the present application, the relevant terms and concepts that may be involved in the embodiments of the present application are first introduced below.
[0065] Natural loop: From instruction A to instruction B, instruction B and the instruction sequence that can reach instruction A without executing instruction B are collectively called a natural loop. Instruction B is defined as the loop header of the natural loop. The loop header is the only entry instruction of the natural loop, and this entry instruction dominates all instructions in the natural loop.
[0066] At present, the programs processed by the processors in terminal devices are becoming more and more complex, and the storage space of the existing instruction storage unit is also limited, so the program run by the processor can be divided into at least one instruction block. During the running of the program, an instruction block in the program (the instruction block may contain some or all instructions) can be moved to the instruction storage unit. There may be a large number of natural loops in the program. When some instructions in the natural loop instructions are not in the currently executed instruction block, that is, when there is a jump, it is often necessary to transfer the instruction blocks multiple times, and it is impossible to load all the instructions involved in the entire natural loop into the instruction storage unit through a single instruction loading operation. In this process, the instruction blocks need to be transferred multiple times, which increases the execution time of the program and reduces the running efficiency of the program.
[0067] To solve the above problems, the present application proposes a method for reducing instruction jumps, which can divide the instructions in the program into at least one instruction block based on the space size of the instruction storage unit, and optimize the natural loops existing in the program during the compilation process. Specifically, during the compilation process, when the instructions in the first optimization loop are distributed in the i-th instruction block and the i+1-th instruction block, the first optimization loop can be transferred to the i+1-th instruction block, so that the instructions in the first optimization loop are in the same instruction block, thereby reducing the jumps caused by natural loops, reducing the execution time of the program, and improving the system operation efficiency. Among them, each first optimization loop can be a natural loop, which can contain at least one instruction that can be repeatedly executed. The specific execution process of this method can be found in the description below.
[0068] The present application is described in detail below in conjunction with specific embodiments.
[0069] See also Figure 1 , Figure 1 It is a structural schematic diagram of a computer device provided in an embodiment of the present application. As shown in Figure 1, the computer device includes a memory, an input device, an output device and a processor, wherein the computer device may also include a communication bus, and the processor, the input device, the output device and the memory may be interconnected through the bus. Optionally, the above-mentioned computer device may also include an instruction storage unit, and the instruction storage unit may be arranged adjacent to the processor. Further optionally, the instruction storage unit may be integrated with the processor, that is, the instruction storage unit may be an on-chip storage unit of the processor. In this way, when the processor needs to execute a program in the memory, the computer device first loads the program in the memory into the instruction storage unit, and then the processor can access the above-mentioned instruction storage unit to execute the program in the instruction storage unit.
[0070] Wherein, the above-mentioned processor, when used to execute the program stored in the memory, implements the following steps:
[0071] An instruction sequence is obtained from a memory, wherein the instruction sequence includes n instruction blocks, each instruction block includes at least one instruction, and n is a positive integer greater than 1; a first optimization loop is obtained from the instruction sequence, and when the instructions in the first optimization loop are distributed in the i-th instruction block and the i+1-th instruction block, all instructions of the first optimization loop are transferred to the i+1-th instruction block, wherein the first optimization loop is a natural loop that occupies a storage space less than or equal to the storage space occupied by the i+1-th instruction block, and i is a positive integer less than n.
[0072] Furthermore, the processor may be a central processing unit (CPU), an intelligent processor (NPU), a graphics processing unit (GPU) or an image processing unit, and this application does not limit this. Depending on the processor, the method for reducing instruction jumps proposed in the embodiment of the present application can be applied to artificial intelligence application fields such as image recognition processing, deep learning processing, computer vision processing, intelligent robot processing, natural language processing, and execute complex functional programs in the field of artificial intelligence.
[0073] See also Figure 2 , Figure 2 is a flow chart of a method for reducing instruction jumps provided by an embodiment of the present application, and the method is applied to Figure 1 The following method steps can be performed by Figure 1 The processor in the computing device executes. Figure 2 As shown, the method comprises the following steps:
[0074] S210. Obtain an instruction sequence from a memory, where the instruction sequence includes n instruction blocks, each instruction block includes at least one instruction, and n is a positive integer greater than 1.
[0075] In a specific implementation, a program is composed of an instruction sequence including at least one instruction and data, which is stored in a memory. The instruction sequence can be divided into at least one instruction block according to the execution order of the program. After the division is completed, the execution order of the instruction block is obtained, which is also called the instruction block execution trajectory. Among them, the instructions in the instruction sequence can be binary instructions or instructions written in a high-level language, etc., which are not specifically limited here.
[0076] Generally, the storage space occupied by the instruction sequence in the instruction sequence is much larger than the storage space of the instruction storage unit. Therefore, when the storage space occupied by the instruction sequence in the instruction sequence is larger than the storage space of the instruction storage unit, the instruction sequence in the instruction sequence can be divided into multiple instruction blocks. Specifically, the instruction sequence in the instruction sequence can be divided into n instruction blocks according to a designated storage space that is less than or equal to the storage space of the instruction storage unit, or the instruction sequence in the instruction sequence can be divided into n instruction blocks according to a random storage space. Among them, the storage space occupied by each divided instruction block can be the same or different, and the embodiment of the present application does not limit this.
[0077] Specifically, the execution order of the instruction block is based on the execution order of the program. The execution order of the divided instruction block is the same as the execution order of the program, that is, the execution trajectory of the instruction block is consistent with the execution order of the program. The execution order of the program refers to the execution order of the instructions in the program.
[0078] The number of instruction blocks into which the instruction sequence is divided in the present application is n, where n is a positive integer greater than or equal to 1. That is to say, the instruction sequence can be divided into multiple instruction blocks, or the entire program can be regarded as an instruction block. For example, when the storage space required for the instruction sequence involved in the entire program is less than or equal to the storage space of the instruction storage unit, the entire program can be regarded as an instruction block. Each instruction block contains a certain number of instructions, and the number of instructions contained in each instruction block can be one or more. Generally, an instruction block contains at least one instruction, and at least one instruction is executed by the processor in a specific order.
[0079] S220. Obtain a first optimization loop from the instruction sequence, and when instructions in the first optimization loop are distributed in the i-th instruction block and the i+1-th instruction block, transfer all instructions in the first optimization loop to the i+1-th instruction block.
[0080] Among them, the first optimization loop is a natural loop that occupies a storage space less than or equal to the storage space occupied by the i+1th instruction block, that is, the storage space occupied by the outer loop of the first optimization loop (if any) is greater than the storage space of the i+1th instruction block, and the storage space occupied by the first optimization loop is greater than or equal to the storage space occupied by the i+1th instruction block, and i is a positive integer less than n. Specifically, the storage space occupied by the first optimization loop may refer to the storage space required to be occupied by all instructions in the first optimization loop.
[0081] Specifically, when the instruction sequence is divided into a plurality of instruction blocks, the plurality of instructions that can be included in the first optimization loop may be divided into two instruction blocks, that is, the instructions in the first optimization loop are actually distributed in two instruction blocks, so that two long jumps are brought when the first optimization loop is executed each time. For example, when the instructions in the first optimization loop are respectively distributed in the first instruction block and the second instruction block, and the loop header of the first optimization loop is in the first instruction block, according to the execution order of the instruction block, the first instruction block is first loaded into the instruction storage unit for execution, and when the target instruction to be executed is in the second instruction block, the second instruction block needs to be loaded into the instruction storage unit, and then the first instruction block needs to be loaded into the instruction storage unit to return to the loop header of the first optimization loop. In this process, it is necessary to load the instruction blocks twice, which increases the execution time of the program. Therefore, in order to reduce the long jump in the first optimization loop, the embodiment of the present application can transfer all the instructions included in the first optimization loop to an instruction block, so that the first optimization loop can be loaded into the instruction storage unit at one time. For example, the first optimization loop included in the first instruction block and the second instruction block is transferred to the second instruction block.
[0082] Optionally, when the instructions in the first optimization loop are distributed in the ith instruction block and the (i+1)th instruction block, empty instructions are filled at the addresses of the instructions of the first optimization loop in the ith instruction block.
[0083] Specifically, when the instructions in the first optimization loop are distributed in the i-th instruction block and the i+1-th instruction block, the instructions in the first optimization loop distributed in the i-th instruction block will be transferred to the i+1-th instruction block, so that all instruction sequences in the first optimization loop are in the same instruction block. In this way, the address of the instructions of the first optimization loop originally placed in the i-th instruction block will be vacant, so the address of the instructions of the first optimization loop in the i-th instruction block is filled with empty instructions, that is, NOP instructions, to fill the remaining space in the i-th instruction block.
[0084] Optionally, after transferring the first optimization loop to the (i+1)th instruction block, the method further includes: updating the instruction sequence and the PC values and addresses of the instructions in the instruction sequence; and determining the size of n based on the updated instruction sequence.
[0085] Among them, after the first optimization loop is transferred to the i+1th instruction block, due to the movement of the first optimization loop, the program counter (PC) value and target address of the instructions in the i+1th instruction block and the instruction block after the i+1th instruction block are changed. Therefore, according to the storage space occupied by the first optimization loop in the i-th instruction block, the PC value and target address of the instructions in the i+1th instruction block and the instruction block after the i+1th instruction block are updated, and the number of the instruction blocks, that is, the size of n, is re-determined according to the updated instruction sequence.
[0086] In a possible embodiment, the method further includes:
[0087] Marking a loop to be optimized in the instruction sequence, wherein the loop to be optimized is a natural loop stored in a continuous storage space;
[0088] The first optimization loop is searched from the marked loops to be optimized.
[0089] Specifically, the instruction sequence may contain many natural loops, and the instructions in the natural loops may be distributed in one or more instruction blocks, and the multiple instruction blocks may be continuous or non-continuous in the storage space. In order to reduce the running time of the program, after obtaining the instruction sequence, the loop to be optimized may be marked in the instruction sequence, and the loop to be optimized is a natural loop stored in a continuous storage space, that is, the loop to be optimized may include one or more instruction blocks that are continuous in the execution order of the instruction blocks. For example, Figure 3A As shown, first scan the instruction sequence to obtain all natural loops in the instruction sequence, then find the instruction blocks in which the instructions in each natural loop are distributed, and if the instruction blocks in which the instructions in the natural loop are distributed are continuous in the execution order of the instruction blocks, mark the natural loop as a loop to be optimized, and finally output all the loops to be optimized.
[0090] It should be noted that the marking of the loop to be optimized can be executed after the instruction sequence is obtained. Therefore, there is no timing relationship between the marking of the loop to be optimized and the division of the instruction sequence, that is, the marking of the loop to be optimized can be performed before or after the division of the instruction sequence, or at the same time as the division of the instruction sequence, which is not limited in the embodiment of the present application.
[0091] In one possible example, if the marking of the loop to be optimized is performed before or simultaneously with the division of the instruction sequence, the terminal device may not be able to determine whether the natural loop is a loop to be optimized based on the execution order of the instruction block. The embodiment of the present application can determine the loop to be optimized based on the basic block sequence in the instruction control flow. Among them, the basic block is a sequence of statements executed sequentially in the control flow, and the control flow enters from the beginning of the basic block and exits from the end of the basic block. The loop to be optimized is a number of consecutive basic blocks in the basic block sequence. For example, Figure 3B As shown, first scan the instruction sequence to obtain all natural loops in the instruction sequence, find all basic blocks where the instructions in each natural loop are distributed, and then find the order of these basic blocks in the basic block sequence. If the order of the basic blocks constitutes a continuous integer sequence, that is, the basic block sequence corresponding to the basic block is a continuous number of basic blocks, then the natural loop is marked as a loop to be optimized.
[0092] When the instructions in a natural loop can be included in one instruction block, but actually span two instruction blocks, each execution of the natural loop will result in two instruction block loads or long jumps, i.e., jitter. In the embodiment of the present application, in order to eliminate jitter, the instructions in the natural loop distributed in the two instruction blocks can be divided into the second instruction block, and the empty positions in the first instruction block are filled with empty instructions to fill the remaining space of the first instruction block.
[0093] Since there may be nested natural loops in natural loops, it is necessary to find the first optimization loop from the marked loops to be optimized and optimize the first optimization loop, that is, to reduce the jitter in the first optimization loop. Figure 4 As shown, first scan all marked loops to be optimized in the instruction sequence, determine whether the marked loops to be optimized meet the definition of the first optimization loop, and obtain all first optimization loops; then scan all first optimization loops, if there is a first optimization loop including two instruction blocks, the ith instruction block and the i+1th instruction block, transfer the first optimization loop to the i+1th instruction block, and then fill the address of the first optimization loop in the ith instruction block with empty instructions, update the instruction sequence and output the updated instruction sequence.
[0094] In the embodiment of the present application, by transferring the first optimization loop to an instruction block, the first optimization loop can be loaded into the instruction storage unit at one time, thereby reducing the jitter within the first optimization loop and shortening the running time of the entire program.
[0095] Optionally, the method further includes: the storage space occupied by any instruction block among the n instruction blocks is determined according to the storage space of the instruction storage unit, and the instruction storage unit includes a first instruction storage unit and / or a second instruction storage unit.
[0096] When the instruction sequence is divided into instruction blocks, the instruction blocks may be divided according to the storage space of the instruction storage unit so that the storage space occupied by each instruction block after the division may be less than or equal to the storage space of the instruction storage unit.
[0097] Furthermore, the instruction storage unit may include a first instruction storage unit and / or a second instruction storage unit. When the instruction sequence is executed in the first instruction storage unit, the instruction sequence is divided according to the storage space of the first instruction storage unit. The first instruction storage unit may be arranged inside the processor or close to the processor. Optionally, the first instruction storage unit may be a hardware-driven instruction storage unit, and the first instruction storage unit may be a cache processor, such as a cache memory. The following example is used to illustrate. Figure 5A As shown in FIG. 1 , the storage space of the cache memory is S. The instruction sequence can be divided into multiple instruction blocks according to the size of S, and the storage space occupied by each instruction block is less than or equal to S. When the program is executed, the first instruction block is loaded into the cache and executed. During the execution process, if the instruction I to be executed is not in the cache, the instruction block where the instruction I is located is loaded into IRAM through hardware to replace the current instruction block, and execution starts from instruction I.
[0098] Further, when the instruction sequence is executed in the second instruction storage unit, the instruction sequence is divided according to the storage space of the second instruction storage unit. The second instruction storage unit can be arranged close to the processor, and the memory is arranged away from the processor relative to the second instruction storage unit. Optionally, the second instruction storage unit can be an on-chip storage unit integrated on the processor, and the memory can be an external storage unit connected to the processor. Optionally, the second instruction storage unit can be a software-driven instruction storage unit, and the second instruction storage unit can be an on-chip random access memory (Instruction RAM, IRAM), an on-chip read-only memory (Instruction ROM, IROM) or a synchronous dynamic random access memory (Synchronous Dynamic Random Access Memory, SDRAM), which is not limited in the embodiments of the present application.
[0099] In the embodiment of the present application, when the instruction storage unit includes a second instruction storage unit, the method further includes:
[0100] A parameter passing instruction and related instructions are inserted after the last instruction of the i-th instruction block, the parameter passing instruction is used to transfer the address of the i+1-th instruction block to the related instructions, and the related instructions are used to load the i+1-th instruction block into the second instruction storage unit.
[0101] Wherein, the related instructions may include at least one instruction. The parameter passing instruction may obtain the target address of the i+1th instruction block or the offset value of the target address of the i+1th instruction block relative to the starting address of the instruction sequence through an instruction, the destination operand of the instruction may be the input of the related instruction, and the source operand of the instruction may be the target address of the i+1th instruction block or the offset value of the target address. Optionally, the parameter passing instruction may also obtain the number of instructions of the i+1th instruction block and the PC value of the target instruction or the offset value of the PC value in the i+1th instruction block through another instruction, the destination operand of the instruction may be the input of the related instruction, and the source operand of the instruction may be the number of instructions of the i+1th instruction block and the PC value of the target instruction or the offset value of the PC value, wherein the number of instructions of the i+1th instruction block, the PC value of the target instruction or the offset value of the PC value may respectively occupy a certain number of bits for storage, for example. The number of instructions in the (i+1)th instruction block may occupy 11 bits, and the PC value of the target instruction or the offset value of the PC value may occupy 10 bits.
[0102] Furthermore, the destination operand of the parameter passing instruction may be a register, such as R1, R2, R3 or R4. The source operand of the parameter passing instruction may be a register or a constant value. The register can only be used by the parameter passing instruction during program execution. The parameter passing instruction may include but is not limited to data transfer instructions such as MOV instructions, PUSH instructions, and LEA instructions. It should be noted that the registers used by different instructions in the parameter passing instruction may be different or the same.
[0103] Wherein, the related instruction may be an instruction for loading the i+1th instruction block (target instruction block) into the second instruction storage unit, and the i+1th instruction block may be an instruction block to be executed after compilation. When the i+1th instruction block is not in the second instruction storage unit, the i+1th instruction block is loaded into the second instruction storage unit so that the processor can execute the instructions in the i+1th instruction block. The related instruction may include at least one instruction. Optionally, the input of the related instruction may be the target address of the i+1th instruction block or the offset value of the target address passed through a register; and / or, the number of instructions of the i+1th instruction block and the PC value of the target instruction or the offset value of the PC value passed through a register. The target address of the i+1th instruction block and / or the number of instructions of the i+1th instruction block and the PC value of the target instruction or the offset value of the PC value may be transmitted to the register through the instruction in the parameter transfer instruction. Furthermore, the relevant instructions can read the target address or the offset value of the target address stored in the register to load the i+1th instruction block into the second instruction storage unit; the relevant instructions can determine the current position of the target instruction in the i+1th instruction block by reading the number of instructions in the i+1th instruction block and the PC value of the target instruction or the offset value of the PC value stored in the register, so that the i+1th instruction block can be executed from the current position of the target instruction.
[0104] Before the program is run, it needs to be compiled. During the compilation, the parameter passing instruction and related instructions can be inserted after the last instruction of the i-th instruction block. It can be understood that, except for the last instruction block, the parameter passing instruction and related instructions are added after the last instruction of each instruction block. In this way, after executing the i-th instruction block, the parameter passing instruction and related instructions can be used to switch to the i+1-th instruction block for execution.
[0105] In an embodiment of the present application, by inserting parameter passing instructions and related instructions after the last instruction of the i-th instruction block, after the i-th instruction block is executed, the related instructions can be called through the parameter passing instructions to automatically load and execute the i+1-th instruction block, thereby realizing automatic switching execution between instruction blocks, thereby improving the execution efficiency of the program.
[0106] Optionally, the storage space occupied by any one of the n instruction blocks is determined based on the storage space of the instruction storage unit, including: the storage space occupied by any one of the n instruction blocks is determined based on the storage space of the second instruction storage unit and the storage space occupied by the parameter passing instructions and the related instructions.
[0107] Specifically, when the instruction sequence is divided into instruction blocks, the instruction blocks are divided according to the size of the storage space of the second instruction storage unit, so that the storage space occupied by each instruction block after the division is smaller than the storage space of the instruction storage unit, and the second instruction storage unit is required to be able to store a complete instruction block. Wherein, the instruction block includes the parameter passing instruction and the related instructions, the related instructions are placed at the end of the instruction block, and the parameter passing instruction is placed between the instruction block and the related instructions. In other words, the instruction sequence can be divided into instruction blocks according to the difference between the storage space of the second instruction storage unit and the storage space occupied by the parameter passing instruction and the related instructions, such as Figure 5B As shown, the storage space of IRAM is S, the storage space occupied by the parameter passing instruction is S1, and the storage space occupied by the related instructions is S2. The instruction sequence can be divided into multiple instruction blocks according to the size of S-S1-S2, and the storage space occupied by each instruction block is less than or equal to S-S1-S2. When the program is executed, the first instruction block, the parameter passing instruction and the related instructions are first loaded into IRAM for execution. During the execution process, if the instruction I to be executed is no longer in IRAM, the related instructions in IRAM are called through the parameter passing instruction, and the instruction block where instruction I is located is loaded into IRAM to replace the current instruction block, and execution starts from instruction I, so that automatic switching execution between instruction blocks can be realized.
[0108] In a possible embodiment, the second instruction storage unit includes a first storage unit and a second storage unit, the first storage unit is used to store an instruction block among the n instruction blocks, and the second storage unit is used to store the parameter passing instruction and the related instructions.
[0109] The parameter passing instruction and the related instruction may be a piece of solidified code. When the i+1th instruction block is not in the first storage unit, the target address of the i+1th instruction block is obtained by calling the related instruction through the parameter passing instruction from the second storage unit, and the i+1th instruction block is loaded into the first storage unit.
[0110] Optionally, the storage space occupied by any instruction block among the n instruction blocks is determined according to the storage space of the instruction storage unit, including: the storage space occupied by any instruction block among the n instruction blocks is determined according to the storage space of the first storage unit in the second instruction storage unit.
[0111] Specifically, when dividing the instruction sequence into instruction blocks, the instruction blocks are divided according to the storage space size of the first storage unit, so that the storage space occupied by each instruction block after the division is smaller than the storage space of the first storage unit, and the first storage unit is required to be able to store a complete instruction block. Figure 5CAs shown, IRAM includes IRAM_P1 and IRAM_P2, where the storage space occupied by IRAM_P1 is S1, and the instruction sequence can be divided into multiple instruction blocks according to the size of S1, and the storage space occupied by each instruction block is less than or equal to S1. When the program is executed, the first instruction block is first loaded into IRAM_P1 for execution. During the execution process, if the instruction I to be executed is no longer in IRAM_P1, the relevant instructions in IRAM_P2 are called through the parameter passing instruction, and the instruction block where the instruction I is located is loaded into IRAM_P1 to replace the current instruction block, and execution starts from instruction I, so that automatic switching execution between instruction blocks can be realized.
[0112] The method of the embodiment of the present application is described in detail below by taking IRAM as an instruction storage unit as an example.
[0113] like Figure 6 As shown, Figure 6 A schematic diagram of an original program P provided in an embodiment of the present application. The storage space of IRAM is 1024, such as Figure 6 As shown, the program P is stored in a double data rate synchronous dynamic random access memory (DDR SDRAM). Since the instruction sequence of the program P occupies a storage space of 2800 and the program P contains two natural loops, there are multiple long jumps when executing the program P, which will increase the running time of the program. The jumps in the program P can be reduced by the method described in the embodiments of the present application.
[0114] like Figure 5C As shown, IRAM includes two parts, IRAM_P1 and IRAM_P2, where IRAM_P1 is used to store instruction blocks, and IRAM_P2 is used to store parameter-passing instructions and related instructions. The storage space S1 of IRAM_P1 is 1001, the first address is 0, and the first address A2 of IRAM_P2 is 1013. When the instruction block in IRAM_P1 is executed, if the instruction to be executed is not in IRAM_P1, the instruction block where the instruction to be executed is located is replaced in IRAM_P1 by calling the related instructions through the parameter-passing instructions, and jumps to the corresponding target address to continue execution.
[0115] Specifically, the instruction sequence of the program is divided into instruction blocks, and the storage space occupied by each instruction block after the division is smaller than the storage space of IRAM_P1. Figure 7 As shown, the program divides the instruction sequence into three instruction blocks, namely X0, X1, and X2, according to the size of S1-1.
[0116] Further, scan program P to obtain all natural loops in program P, namely C1 and C2. Among them, C1 includes instruction blocks X0 and X1, C2 includes instruction block X1, and the execution order of instruction blocks X0 and X1 is continuous, so C1 and C2 are marked as loops to be optimized. Afterwards, according to the definition of the first optimized loop, determine whether C1 and C2 are the first optimized loop. Among them, C1 includes C2, that is, C1 is the outer loop of C2, and the storage space occupied by C1 is less than the storage space of IRAM_P1, therefore, C1 is used as the first optimized loop.
[0117] Among them, C1 includes instruction blocks X0 and X1, which spans two instruction blocks. Therefore, all instructions contained in C1 are transferred to instruction block X1, and the free positions in instruction block X0 (that is, the addresses corresponding to some instructions in C1 originally distributed in instruction block X0) are filled with NOP instructions, and the PC value of the instruction in program P1 and the address (DDR_ADDR) of the DDR SDRAM are updated, and the value of the source operand in the parameter transfer instruction is updated. The updated program is as follows: Figure 8 shown.
[0118] Figure 8 After the above processing, the program in can load the first optimization loop into IRAM for execution at one time, that is, the C1 instruction block can be loaded into IRAM_P1 for execution. The figure shows the PC value (IRAM_PC) of each instruction block loaded into IRAM_P1. It should be noted that Figure 8 The target address 1312 in the instruction JUMP EQ 1300 refers to DDR_ADDR (this DDR_ADDR refers to the address on the IRAM).
[0119] It can be seen that the method for reducing instruction jumps in the embodiment of the present application, when the instructions in the first optimized loop are distributed in the i-th instruction block and the i+1-th instruction block, transfers the first optimized loop to the i+1-th instruction block, so that the natural loop in the first optimized loop is in the same instruction block, thereby reducing the jumps caused by the natural loop, reducing the execution time of the program, and improving the system operation efficiency.
[0120] For example, when the method for reducing instruction jumps proposed in the present application is applied to image recognition processing, the processor obtains the instruction sequence of image recognition from the memory, and then obtains the first optimization loop from the instruction sequence of image recognition. When the instructions in the first optimization loop are distributed in the i-th instruction block and the i+1-th instruction block, the first optimization loop is transferred to the i+1-th instruction block, so that the instructions in the first optimization loop are in the same instruction block, thereby reducing the jumps caused by natural loops, reducing the execution time of the image recognition processing program, and improving the operating efficiency of the image recognition system.
[0121] Furthermore, when the method for reducing instruction jumps proposed in the present application is applied to deep learning processing, the processor obtains the deep learning instruction sequence from the memory, and then obtains the first optimization loop from the deep learning instruction sequence. When the instructions in the first optimization loop are distributed in the i-th instruction block and the i+1-th instruction block, the first optimization loop is transferred to the i+1-th instruction block, so that the instructions in the first optimization loop are in the same instruction block, thereby reducing the jumps caused by natural loops, reducing the execution time of the deep learning processing program, and improving the operating efficiency of the deep learning system.
[0122] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0123] The embodiment of the present application can divide the electronic device into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0124] See also Fig. 9A , Fig. 9A is a block diagram of the functional units of a device 900 for reducing instruction jumps provided in an embodiment of the present application, such as Fig. 9A As shown, the program running device 900 includes an acquisition module 910 and a transfer module 920, wherein:
[0125] The acquisition module 910 is used to acquire an instruction sequence from a memory, wherein the instruction sequence includes n instruction blocks, each instruction block includes at least one instruction, and n is a positive integer greater than 1;
[0126] The acquisition module 910 is further used to acquire a first optimization loop from the instruction sequence;
[0127] The transfer module 920 is used to transfer the first optimization loop to the i+1th instruction block when the instructions in the first optimization loop are distributed in the i-th instruction block and the i+1-th instruction block. The first optimization loop is a natural loop that occupies a storage space less than or equal to the storage space occupied by the i+1-th instruction block, and i is a positive integer less than n.
[0128] It can be seen that the device for reducing instruction jumps in the embodiment of the present application, when the instructions in the first optimization loop are distributed in the i-th instruction block and the i+1-th instruction block, transfers the first optimization loop to the i+1-th instruction block, so that the instructions in the first optimization loop are in the same instruction block, thereby reducing the jumps caused by natural loops, reducing the execution time of the program, and improving the system operation efficiency.
[0129] In one possible embodiment, Fig. 9B , which is a functional unit composition block diagram of another program running device 900 provided in an embodiment of the present application, wherein the device 900 further includes:
[0130] The filling module 930 is used to fill empty instructions at the address of the first optimization loop in the i-th instruction block when the instructions in the first optimization loop are distributed in the i-th instruction block and the i+1-th instruction block.
[0131] Optionally, after transferring the first optimization loop to the (i+1)th instruction block, the apparatus 900 further includes:
[0132] An updating module 940, configured to update the instruction sequence and the PC value and address of the instructions in the instruction sequence;
[0133] The determination module 950 is used to determine the size of n according to the updated instruction sequence.
[0134] In a possible embodiment, the device 900 further includes:
[0135] A marking module 960, configured to mark a loop to be optimized in the instruction sequence, wherein the loop to be optimized is a natural loop stored in a continuous storage space;
[0136] The searching module 970 is configured to search for the first optimized loop from the marked loops to be optimized.
[0137] Optionally, the determining module 950 is further configured to:
[0138] The storage space occupied by any instruction block among the n instruction blocks is determined according to the storage space of the instruction storage unit, and the instruction storage unit includes a first instruction storage unit and / or a second instruction storage unit, the first instruction storage unit is an instruction storage unit driven by hardware, and the second instruction storage unit is an instruction storage unit driven by software.
[0139] In a possible embodiment, when the instruction storage unit includes a second instruction storage unit, the apparatus 900 further includes:
[0140] An insertion module 980, configured to insert a parameter passing instruction and a related instruction after the last instruction of the i-th instruction block, wherein the parameter passing instruction is used to transmit the address of the i+1-th instruction block to the related instruction, and the related instruction is used to load the i+1-th instruction block into the second instruction storage unit;
[0141] The determination module 950 is specifically used to determine the storage space occupied by any instruction block among the n instruction blocks based on the storage space of the second instruction storage unit and the storage space occupied by the parameter passing instruction and the related instructions.
[0142] Optionally, the second instruction storage unit includes a first storage unit and a second storage unit, the first storage unit is used to store an instruction block among the n instruction blocks, and the second storage unit is used to store the parameter passing instruction and the related instructions;
[0143] The determination module 950 is specifically configured to determine the storage space occupied by any instruction block among the n instruction blocks according to the storage space of the first storage unit in the second instruction storage unit.
[0144] It can be understood that the functions of each program module of the device for reducing instruction jumps in the embodiment of the present application can be specifically implemented according to the method in the above method embodiment, and its specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0145] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any method recorded in the above method embodiments.
[0146] The present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps of any method described in the above method embodiment. The computer program product may be a software installation package.
[0147] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, 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 and modules involved are not necessarily required by the present application.
[0148] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0149] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0150] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0151] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0152] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, terminal device or network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.
[0153] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing the relevant hardware through a program, and the program may be stored in a computer-readable memory, which may include a flash drive, ROM, RAM, a magnetic disk or an optical disk, etc.
[0154] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, 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 application.
Claims
1. A method for reducing instruction jumps, characterized in that: The method comprises: Obtain an instruction sequence from a memory, wherein the instruction sequence includes n instruction blocks, each instruction block includes at least one instruction, and n is a positive integer greater than 1; Obtaining a first optimized loop from the instruction sequence, and transferring the instructions in the first optimized loop to the i+1th instruction block when the instructions in the first optimized loop are distributed in the i-th instruction block and the i+1th instruction block, wherein the first optimized loop is a natural loop whose storage space occupied is less than or equal to the storage space occupied by the i+1th instruction block, and i is a positive integer less than n; The memory is arranged away from the processor relative to the instruction storage unit, and the instruction storage unit includes a first instruction storage unit. In the case where the instruction storage unit includes the first instruction storage unit, the method further includes: A parameter passing instruction and related instructions are inserted after the last instruction of the i-th instruction block, the parameter passing instruction is used to transfer the address of the i+1-th instruction block to the related instructions, and the related instructions are used to load the i+1-th instruction block into the first instruction storage unit.
2. The method according to claim 1, characterized in that: The method further comprises: When the instructions in the first optimization loop are distributed in the ith instruction block and the (i+1)th instruction block, empty instructions are filled at the addresses in the first optimization loop of the ith instruction block.
3. The method according to claim 2, characterized in that: After transferring the first optimization loop to the (i+1)th instruction block, the method further includes: The instruction sequence and the PC values and addresses of the instructions in the instruction sequence are updated; and the size of n is determined according to the updated instruction sequence.
4. The method according to claim 1, characterized in that: The method further comprises: Marking a loop to be optimized in the instruction sequence, wherein the loop to be optimized is a natural loop stored in a continuous storage space; The first optimization loop is searched from the marked loops to be optimized.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: The storage space occupied by any instruction block among the n instruction blocks is determined according to the storage space of the instruction storage unit.
6. The method according to claim 5, characterized in that: The storage space occupied by any instruction block of the n instruction blocks is determined according to the storage space of the instruction storage unit, including: The storage space occupied by any instruction block among the n instruction blocks is determined based on the storage space of the first instruction storage unit and the storage space occupied by the parameter passing instruction and the related instructions.
7. The method according to claim 5, characterized in that: The first instruction storage unit includes a first storage unit and a second storage unit, the first storage unit is used to store an instruction block among the n instruction blocks, and the second storage unit is used to store the parameter passing instruction and the related instructions; The storage space occupied by any instruction block of the n instruction blocks is determined according to the storage space of the instruction storage unit, including: The storage space occupied by any instruction block among the n instruction blocks is determined according to the storage space of the first storage unit in the first instruction storage unit.
8. A device for reducing instruction jumps, characterized in that: The device comprises: An acquisition module, configured to acquire an instruction sequence of a thread from a memory, wherein the instruction sequence includes n instruction blocks, each instruction block includes at least one instruction, and n is a positive integer greater than 1; The acquisition module is further used to acquire a first optimization loop from the instruction sequence; a transfer module, configured to transfer the first optimization loop to the i+1th instruction block when the instructions in the first optimization loop are distributed in the i-th instruction block and the i+1th instruction block, wherein the first optimization loop is a natural loop whose storage space occupied is less than or equal to the storage space occupied by the i+1th instruction block, and i is a positive integer less than n; The memory is arranged away from the processor relative to the instruction storage unit, and the instruction storage unit includes a first instruction storage unit. In the case where the instruction storage unit includes the first instruction storage unit, the apparatus further includes: An insertion module is used to insert a parameter passing instruction and related instructions after the last instruction of the i-th instruction block, the parameter passing instruction is used to transfer the address of the i+1-th instruction block to the related instructions, and the related instructions are used to load the i+1-th instruction block into the first instruction storage unit.
9. A computer device, characterized in that: The computer device comprises a memory and a processor, wherein the memory stores a computer program executable on the processor, and when the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a computer program for data exchange, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Compiler apparatus
CN101000556A
Instruction set transition system and method
CN104679480A
A method for emulating a guest centralized flag architecture by using a native distributed flag architecture
CN105247484A
Method and a device for constructing a memory command sequence
CN109656479A
Execution of instruction loops using an instruction buffer
US20140136822A1
