liveBook · Manning

Bytecode

Bytecode is an intermediate instruction representation produced from source code for execution or further compilation by a virtual machine or language runtime.

How 2 Manning books explain it

JavaScript in Depth

An intermediate, executable representation of program instructions intended for processing by a virtual machine or runtime.

How it is used
Explains how V8 begins executing functions and gathers feedback before applying progressively stronger compilation tiers.
How deep it goes
Shows instruction meanings, feedback slots, lazy generation, and tier transitions, but does not detail bytecode encoding internals.
Examples
Uses an addition function, generated bytecode instructions, a large deferred function, and repeated getTotal calls to show tier performance.
What you can do after
Evaluate first-call costs, feedback invalidation, and performance changes across V8's compilation tiers.

Read how JavaScript in Depth explains bytecode →

Systems Programming with Zig

Bytecode is a compact instruction representation intended to be executed by an interpreter or virtual machine.

How it is used
Uses bytecode as executable input for a CHIP-8 interpreter and runtime.
How deep it goes
Defines bytecode and explains nibble-based instruction decoding, while leaving instruction implementation to independent work.
Examples
Uses original CHIP-8 programs and splits each two-byte instruction into four nibbles.
What you can do after
Build a CHIP-8 interpreter that loads bytecode and steps instructions in a runtime.

Read how Systems Programming with Zig explains bytecode →

Also covered in

What to know first

Related concepts

Questions about bytecode

What is bytecode?

Bytecode is an intermediate instruction representation produced from source code for execution or further compilation by a virtual machine or language runtime.

Which Manning books explain bytecode?

JavaScript in Depth and Systems Programming with Zig.

What should I know before learning bytecode?

Manning books that teach bytecode usually introduce Python, JavaScript, machine language and performance first.

What is bytecode a kind of?

Bytecode is a kind of intermediate representation. An intermediate representation is a structured internal form of a program, model, or information used between processing stages for analysis, transformation, or generation.

What are the parts of bytecode?

Bytecode includes opcode.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.