[CLR via C #] 1.5 Local Code Generator: NGen.exe

Source: Internet
Author: User

1. NGen.exe tool, which can compile the IL code into local code when a program is installed on the user's computer. Since the code has been compiled during installation, the clr jit compiler does not need to compile the IL code at runtime, which helps improve the program performance.

2. NGen.exe can speed up program startup and reduce program working sets. 3. The file generated by NGen.exe has the following problems: 1) There is no intellectual property protection. During runtime, CLR requires access to the Assembly metadata, which requires simultaneous release of the Assembly containing IL code and metadata. 2) The file generated by NGen may be out of sync. The file generated by NGen is applicable to the current execution environment. When you change the previous execution environment, the file generated by NGen cannot be used. 3) Poor execution performance. NGen cannot optimize the final execution environment as the JIT compiler does.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.