Fading Coder

One Final Commit for the Last Sprint

Backtracing Stack Frames on the ARM64 Architecture

A function's stack frame in ARM64 contains two key saved register values at its base, pointed to by the Frame Pointer (FP or X29) register. These are the saved Frame Pointer from the caller and the saved Link Register (LR or X30), which holds the return address. The FP register points to the base of...

Understanding Python Functions: Stack Frames, List Mutability, and Variable Scope

Understanding Python Functions: Stack Frames, List Mutability, and Variable Scope
1 Stack Frame Tracing 1.1 hours_to_seconds(20) When executing hours_to_seconds(20), 3 stack frames are created: hours_to_seconds hours_to_minutes minutes_to_seconds 1.2 days_to_seconds(6) When executing days_to_seconds(6), 5 stack frame are created: days_to_seconds days_to_hours hours_to_seconds hou...

Analyzing Function Stack Frame Creation and Destruction via Disassembly in C

What Is a Function Stack Frame? A function stack frame is a data structure used in computer programs to implement function calls. During a function call, each function creates a new stack frame in memory to store local variables, return addresses, and parameters. Typically, a function stack frame in...