← All writing

CSAPP

A short CSAPP reading note on machine-level program representation, focusing on instruction set architecture, sequential execution semantics and byte-addressable virtual memory.

CSAPP

Chapter 3 Machine-Level Representation of Programs

3.2 Program Encodings

3.2.1 Machine-Level Code

Two of these are especially important for machine-level programming.

First, the format and behavior of a machine-level program is defined by the instruction set architecture, or ISA, defining the processor state, the format of the instructions, and the effect each of these instructions will have on the state.

The processor hardware is far more elaborate, executing many instructions concurrently, but it employs safeguards to ensure that the overall behavior matches the sequential operation dictated by the ISA.

Second, the memory addresses used by a machine-level program are virtual addresses, providing a memory model that appears to be a very large byte array.

Machine code views the memory as simply a large byte-addressable array.

← Back to ArchiveBack to top ↑

Comments

No approved comments yet.

Your display name and plain-text comment become public only after owner approval. No account or email is required.