native code
Instructions in the language of a specific processor, which the processor can execute directly.
In more detail
Programs in C or Go are usually compiled to native code ahead of time, so the output only runs on one kind of processor and operating system. Java compiles to bytecode first and lets the JVM produce native code at runtime for the processor it finds itself on. That is why a Java service is slower for its first few seconds.
Related terms
- bytecode — A compact, portable instruction format that a virtual machine or interpreter executes, instead of instructions for one particular processor.
- JIT compiler — A compiler inside a runtime that turns intermediate code into native machine code while the program runs.
- CPU — The chip in a computer that runs program instructions; a machine can have several.
Taught in
- The Virtual Machine, The Kit And The Runtime — Modern Java: Virtual Threads & High-Throughput Services
- The Lifecycle Of A Java Program — Modern Java: Virtual Threads & High-Throughput Services