MENU service case
 Website construction website design Beijing website construction high-end website production company Shangpin China
We create by embracing change
360 ° brand value__
simplified Chinese character
Simplified Chinese English

Shangpin China Joins Hands with Beisheng Internet to Create a New Chapter in Website Construction

Type: Shangpin Dynamic Learn more

Code generation

Source: Shangpin China | Type: website encyclopedia | Time: March 31, 2015
Beijing website construction It includes code. Code generation is the process of converting the intermediate results (in the same language) after syntax and semantic analysis into equivalent target programs or target program blocks. Lexical analysis, syntax analysis and semantic analysis are called the front end of the compilation system together. They belong to the analysis part. Code generation and code optimization are called the back end of the compilation system, and belong to the comprehensive part. The intermediate result is a procedure expressed by the intermediate language education such as ternary, quaternion or anti Polish. The target program is written in the target language; It can be machine language, assembly language or even high-level language. With the continuous improvement of the computer compilation environment and the execution environment, it can not only generate directly executable object programs, but also generate relocatable or connectable object program modules. Finally, it can form directly executable object programs by connecting loaders. Code generation is not only related to the compilation environment, but also to the running environment. All generated object programs should meet the specifications required by connection loading. In code generation, memory allocation and register allocation are important and complex issues that directly affect the efficiency of target programs, and should be given sufficient attention.
 
 Code generation

The organization and management of runtime storage space is a complex and very important issue. First, we need to understand the relationship between the activities of a process static source program and its target program at runtime. The activity of a process refers to the execution of the process. In order to manage the information required by a process in one execution, we use a continuous storage block, which is called an active record. The activity record records the temporary unit, inside information vector, local variable, formal unit, static chain, dynamic chain and return address.

There are three kinds of storage field allocation strategies: static allocation, stack dynamic allocation and stack dynamic allocation. A stack is a specific storage area, one end of which is fixed and the other end is floating. All information stored in this storage area is also called a heap array stack. The concept of stack is widely used in compiling technology and other software technologies. A heap is a specific storage area. Its allocation and use method is to first divide it into several variable length sub storage areas. Some are used to store data. Some are for free use. When creating a piece of data, you need to select a large enough free area from the free public area to store the data. When the data is no longer used, the corresponding memory area will be released. This storage allocation method is called heap allocation. Heap distribution is applicable to data with variable length during processing, such as tables in USP language education

In the generation of Dema, the emperor first considered the target program structure corresponding to each shackle program or the sentence in the middle of the kneading order, and then converted it one to many. Some of them may not be known in advance, but they can be determined first. Note the location, pull up the frog, and then fix it after knowing the tears. Generate a more effective target for 7. Another important issue to consider is how to use registers more effectively. In addition, address calculation and array reference are different, so we will not describe them one by one.
Source Statement: This article is original or edited by Shangpin China's editors. If it needs to be reproduced, please indicate that it is from Shangpin China. The above contents (including pictures and words) are from the Internet. If there is any infringement, please contact us in time (010-60259772).
TAG label:

What if your website can increase the number of conversions and improve customer satisfaction?

Make an appointment with a professional consultant to communicate!

* Shangpin professional consultant will contact you as soon as possible

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]

Communicate with professional consultants now!

  • National Service Hotline

    400-700-4979

  • Beijing Service Hotline

    010-60259772

Please be assured to fill in the information protection
Online consultation

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]