compilers
12 articles tagged compilers.
-
Compiler Escape Analysis
How compilers prove objects can stay on the stack, reducing allocation and garbage-collection cost while limiting unnecessary sharing.
-
Static Single Assignment Form
How SSA gives each value one definition and uses phi nodes to merge control-flow paths for simpler compiler optimization.
-
Go Escape Analysis and Stack versus Heap Allocation
How Go’s compiler tracks references to place values on goroutine stacks or the heap, and why the choice affects allocations, garbage collection, and speed.
-
Static Single Assignment Form and Phi Functions
SSA gives each computed value one name and uses φ-functions to make control-flow joins explicit for simpler compiler data-flow analysis.
-
How Compiler Register Allocation Uses Interference and Spilling
Register allocation assigns live intermediate values to CPU registers, building interference constraints and spilling selected values to memory when registers run out.
-
Static Single Assignment Form and Phi Functions
How SSA gives each value one definition, while φ-functions merge control-flow paths so compiler optimizations remain correct.
-
Compiler Escape Analysis and Stack Allocation
How compilers follow object references to decide whether an allocation can stay in a stack frame or must be managed on the heap.
-
Rust Monomorphization and Static Dispatch
How Rust generates type-specific code for generics, and why that improves call performance while increasing build time and binary size.
-
Static Single-Assignment Form and Phi Nodes
SSA gives each intermediate value one definition, while φ-nodes merge values from different control-flow paths for simpler data-flow optimization.
-
How Linkers Resolve Symbols and Relocations
How linkers turn object files into runnable code by matching symbols, fixing addresses, and coordinating position-independent code with shared libraries.
-
Compiler Escape Analysis and Stack Versus Heap
Escape analysis predicts whether a value can outlive its function, guiding stack or heap placement and influencing allocation and garbage-collection costs.
-
Static Single Assignment Form and Phi Nodes
How SSA gives every assignment a distinct version and uses phi nodes to merge values when control-flow paths meet.