Native code can also be distinguished from bytecode (sometimes called interpreted code), a form of code that can be said to run in a virtual machine (for example, the Java virtual machine). The virtual machine is a program that converts the platform-generalized bytecode into the native code that will run in a specific processor. Microsoft's .NET compilers for its Visual Basic, C#, and JavaScript languages produce bytecode (which Microsoft calls Intermediate Language). Java bytecode and Microsoft's Intermediate Language can be compiled into native code before execution by a just-in-time compiler for faster performance.
Native code
最新推荐文章于 2023-05-13 21:39:53 发布
本文介绍了本机代码(native code),即针对特定处理器及其指令集编写的计算机程序代码。本机代码在不同处理器上的运行需要通过软件模拟原始处理器的环境,这会降低运行效率。文章还对比了本机代码与字节码的区别,后者能在虚拟机环境中运行,并可通过即时编译器转换为本机代码以提高执行速度。
Native code is computer programming (code) that is compiled to run with a particular
processor (such as an Intel
x86-class processor) and its set of
instructions. If the same program is run on a computer with a different processor, software can be provided so that the computer emulates the original processor. In this case, the original program runs in "emulation mode" on the new processor and almost certainly more slowly than in native mode on the original processor. (The program can be rewritten and recompiled so that it runs on the new processor in native mode.)
1929

被折叠的 条评论
为什么被折叠?



