Skip to content

Lexicon Entry

macOS

macOS is a Unix-based operating system developed by Apple. It features a hybrid kernel (XNU) combining elements of Mach and FreeBSD, and heavily utilizes Mach ports for IPC and system-level operations.

Related Knowledge & Cross-References

Guide

macOS Execution: Mach Tasks vs. BSD Processes

A deep dive into the Darwin/XNU kernel. We explore the architectural divide between Mach Tasks and Threads, and how standard BSD POSIX APIs like fork() are illusions layered over Mach primitives.

Guide

How a C Program Becomes Machine Code: The C Compilation Process Explained

Trace the complete C compilation process from source code to executable binary. See each stage — preprocessing, compilation, assembly, and linking — with real GCC and Clang output across x86-64 and ARM64.

Guide

Build a Debugger from Scratch: Ultimate 3 OS Guide (Part 8)

Build a working debugger from scratch in assembly. Learn how breakpoints, ptrace, and signal interception let one process inspect and control another.

Guide

System Calls Demystified: 4 Essential Facts About the User-Kernel Bridge

How does your program actually do anything? We dive deep into the syscall instruction, kernel mode transitions, and the differences between Linux, macOS, and Windows system calls.

Guide

Process Loading & Creation: The Life of a Binary

Curious about process loading? We trace the journey from disk to execution, covering the OS loader, ASLR, and dynamic linking on Linux, macOS, and Windows.

Guide

Stack Frames & Function Prologues Demystified: x86-64 & ARM64 Guide

Master stack frame prologue and epilogue patterns across x86-64 and ARM64 architectures. Learn how function calls work at the assembly level on Linux, macOS, and Windows.