All original content is created in Ukrainian. Not all content has been translated yet. Some posts may only be available in Ukrainian.Learn more

What is native machine code?

Table of contentsClick link to navigate to the desired location
This content has been automatically translated from Ukrainian.
Native machine code is a type of software code that is executed directly by a computer's processor. It is specific to each type of processor, as it depends on its architecture. This code consists of sequences of binary instructions, each dictating to the processor which operations to perform.

Main characteristics of native machine code

  • Native machine code is executed by the processor directly, without additional stages of interpretation or compilation. This ensures high execution speed, as the code is optimized for a specific type of processor.
  • The code is written or compiled for a specific processor architecture (for example, x86, ARM). This means that a program compiled for one architecture will not work on another without recompilation.
  • For example, bytecode requires a virtual machine for execution (for example, Java bytecode on the JVM), while native machine code does not require an additional execution environment.
An interesting illustrative example from the English Wikipedia:
The Game Boy runs software (a game) obtained through a cartridge that contains the (native) code being executed. The only way to run this code on another processor (not on the original Game Boy processor that interprets the native code) is to use an emulator that simulates a real Game Boy. Running the emulator is an additional load on the operating system, which can affect the speed of the program.

This post doesn't have any additions from the author yet.

18 Apr 06:06

Analyzing the PG::ObjectInUse error (Ruby on Rails)

meme code
meme code@memecode
27 Apr 09:29

What are CC and BCC in emails? What are they for and how to use them?

meme code
meme code@memecode
What is a prompt and prompt engineering?
03 May 12:08

What is a prompt and prompt engineering?

meme code
meme code@memecode
ZOMBIE in Ruby. What is it?
03 May 12:41

ZOMBIE in Ruby. What is it?

meme code
meme code@memecode
03 May 13:13

What is the Garbage Collector in Ruby? How does it work and what is GC used for?

meme code
meme code@memecode
A little about the types of Ruby implementations (CRuby (MRI), JRuby, Rubinius, TruffleRuby, mruby)
05 May 12:36

A little about the types of Ruby implementations (CRuby (MRI), JRuby, Rubinius, TruffleRuby, mruby)

meme code
meme code@memecode
Enabling YJIT in Ruby 3.2.1 (Ruby on Rails)
08 May 07:57

Enabling YJIT in Ruby 3.2.1 (Ruby on Rails)

meme code
meme code@memecode
09 May 12:43

[Fix] Rails Admin - undefined local variable or method javascript_importmap_shim_nonce_configuration_tag

meme code
meme code@memecode
What is technical debt in IT projects?
13 May 06:17

What is technical debt in IT projects?

meme code
meme code@memecode
13 May 07:11

What does scope mean in IT project management?

meme code
meme code@memecode
What is "scope creep"?
13 May 07:20

What is "scope creep"?

meme code
meme code@memecode
What does "Native" mean?
22 May 07:01

What does "Native" mean?

meme code
meme code@memecode