System services
The services a program reaches through the kernel and the processor: the environment block, floating point with SSE, SIMD, interrupts, sockets, a small HTTP client, and the output formats that nasm -f writes.
5.1
Environment variables
the environment block above argv, KEY=VALUE, and the search for one variable
Open
5.2
Floating point (SSE)
the XMM registers, scalar SSE arithmetic, and printing a double through printf
Open
5.3
SIMD basics
packed and scalar instructions, alignment, and four adds in one instruction
Open
5.4
Interrupts
int as a gate into the kernel, int 0x80 as the 32-bit syscall path, and the handler table
Open
5.5
Sockets
socket, bind, listen and accept, and a connection answered with write
Open
5.6
A tiny HTTP client
connect, a GET request written to the socket, and the response headers read back
Open
5.7
Output formats: bin, elf, elf64
the -f formats NASM writes, elf64 for a Linux program, and a flat binary for a boot sector
Open