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.