Chapter 2

GNU assembly syntax

Abstract

This chapter describes the syntactical elements of assembly language programs and provides a basic description of what an assembler does. It then introduces some common GNU assembler directives.

Keywords

GNU assembler (GAS); Assembly; Variables; Constants; Filling; Aligning; Symbols; Functions; Objects; Macros; Labels; Comments; Operands; Instructions

All modern computers consist of three main components: the central processing unit (CPU), memory, and devices. It can be argued that the major factor that distinguishes one computer from another is the CPU architecture. The architecture determines the set of instructions that can be performed by the CPU. The human-readable language which is closest to the CPU architecture ...

Get ARM 64-Bit Assembly Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.