1. 3.3 Go Build Processhistorical

    Go source files must be built into executable programs. These notes start with text and binary representations and follow the build process.

  2. 3.4 Memory Managementhistorical

    Go program memory is organized into regions with different purposes. These notes begin with global variables and constants and examine allocation and reclamation.

  3. 3.5 Plan 9 Assemblyhistorical

    Go uses Plan 9-style assembly to represent low-level operations before conversion to machine instructions. These notes record syntax and examples.

  4. 3.6 Memory Alignmenthistorical

    Memory Alignment: The CPU addresses memory through the address bus, while memory transfers data to the CPU through the data bus.

  5. 3.7 GChistorical

    These Go garbage-collection notes cover its purpose, triggers, three-color marking, and mechanisms for reducing stop-the-world time.

  6. 3.8 Golang Stack Managementhistorical

    The stack holds data during function calls, with space allocated through calls. These notes record Go stack organization, allocation, and management.

  7. 3.9 Golang Heap Managementhistorical

    Go manages heap memory in its runtime rather than calling the operating system for every allocation. These notes examine heap organization and allocation through the TCMalloc approach.

  8. 4.1 unittesthistorical

    Go unit tests live in files ending in _test.go. These notes use test code to record assertions, execution, and test organization.

  9. 4.2 pprofhistorical

    Pprof analyzes Go program performance. These notes distinguish profiling for command-line and web applications and record analysis commands.

  10. 4.3 benchmarkhistorical

    Examples such as bench.go and bench_test.go demonstrate how to write and run Go benchmarks.