C # The. NET Operating Mechanism of the newest Learning Series-what does the. NET unmanaged code mean? (2)

Source: Internet
Author: User

Reading directory

I. Preface

Ii. unmanaged code

I. Preface

When talking about the concept of unmanaged code, we should first introduce several concepts involved.

.What is the difference between explain execution and compile execution ?" The concept of machine code is described in this article. machine code refers to the system of machine language as an instruction set. This instruction set is called machine code ), the CPU of a computer can be directly interpreted.

.CLR is.. NET public Language Runtime Library, that is. the aspx page is compiled into a dll file through CLR, because the aspx page can use C #/VB.. NET/J #.

Ii. unmanaged code

.Unmanaged code refers to the machine code that is directly compiled into the target computer. These machine codes can only run on the machine where the code is compiled, or on other machines with the same processor or almost the same processor.

.Unmanaged code cannot enjoy some of the services provided by the CLR in the Common Language Runtime Library, such as memory management and security management. If unmanaged code requires memory management and other services, therefore, you must explicitly call the interface of the operating system. Generally, unmanaged code calls the API provided by the Windows SDK for memory management.

.Unmanaged code does not run in the common language library CLR, but is directly executed by the operating system. unmanaged code must provide services such as garbage collection and security support.

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.