machine code
The binary instructions a specific processor executes directly, such as arm64 or x64 instructions.
In more detail
Machine code for one processor family will not run on another, so it must be produced for each target. Some languages compile to it ahead of time, while runtimes such as .NET and the Java virtual machine produce it from intermediate code as the program runs.
Examples
Go: GOOS and GOARCH choose which machine code a build producesEarly programmers entered machine code by hand, often on punched cards.Related terms
- JIT compiler — A compiler inside a runtime that turns intermediate code into native machine code while the program runs.
- IL — The processor-independent instruction set that .NET compilers produce, stored in assemblies and turned into machine code by the JIT when the program runs.
- CPU architecture — The family of instructions a processor understands, such as 64-bit Intel (amd64) or 64-bit Arm (arm64).
- compiler — A program that translates source code a person wrote into a form a machine or runtime can execute, checking it for errors on the way.
- cross compilation — Building a program on one kind of machine for a different operating system or processor, such as a Linux binary on a Mac.
- GOOS and GOARCH — The two Go settings that choose the target operating system and processor family a build produces a binary for.
- bytecode — A compact, portable instruction format that a virtual machine or interpreter executes, instead of instructions for one particular processor.
- just-in-time compilation — Compiling code into machine code while the program is already running, focusing on the parts that run most often.
- machine instruction — One of the small, fixed set of basic operations a processor can carry out, such as adding two numbers or copying a value.
- assembly language — A way of writing machine instructions using short names such as ADD instead of numbers, translated to machine code by a program called an assembler.
Taught in
- What is .NET? Runtime vs SDK, and LTS vs STS — Modern .NET Core, C# & Enterprise Microservices
- What Go Is and Why It Matters — Concurrent Systems Programming with Go
- V8 Engine & JIT Pipeline: Bytecode & Turbofan — Node.js Internals & Backend Services
- Node.js Process Architecture: Memory & Heap Spaces — Node.js Internals & Backend Services
- What A Program Really Is — Hands-on Python: Complete Video Course & Book
- How Python Runs Your Code — Hands-on Python: Complete Video Course & Book
- Floats, Division And Mixed Types — Hands-on Python: Complete Video Course & Book
- Interpreter, Compiler, And What Counts As Syntax — PCEP Certified Entry-Level Python Programmer (PCEP-30-02) Exam Prep
References
- Managed execution process
- Go FAQ: why is my trivial program such a large binary?
- V8: TurboFan
- Python glossary: bytecode