Jude
Jude

Reputation: 2433

What does 'CPU Specific Code' mean?

"When the managed code is compiled, the compiler converts the source code into a CPU independent intermediate language (IL) code. A Just in time compiler (JIT) compiles the IL code into native code, which is CPU specific" says here: http://www.tutorialspoint.com/asp.net/asp.net_introduction.htm

Please explain what 'CPU Specific' refers to.

Upvotes: 3

Views: 639

Answers (1)

edtheprogrammerguy
edtheprogrammerguy

Reputation: 6039

It refers to native code that is specifically for the CPU it is currently running on.

According to MSFT docs:

JIT compilation converts MSIL to native code on demand at application run time, when the contents of an assembly are loaded and executed. Because the common language runtime supplies a JIT compiler for each supported CPU architecture, developers can build a set of MSIL assemblies that can be JIT-compiled and run on different computers with different machine architectures

Upvotes: 4

Related Questions