Overview

Code from OSTEP chapter Introduction.

To compile, just type:

prompt> make

See the highly primitive Makefile for details.

Then, run them! Examples:

prompt> ./cpu A
prompt> ./mem 1
prompt> ./threads 10000
prompt> ./io

Details

One issue with mem.c is that address space randomization is usually on by
default. To turn it off:

macOS

From stackoverflow

Just compile/link as follows:
gcc -o mem mem.c -Wall -Wl,-no_pie

Linux

From Giovanni Lagorio:

Under Linux you can disable ASLR, without using a debugger, in (at least) two ways: