Tagged articles
14 articles
Page 1 of 1
Code Mala Tang
Code Mala Tang
Mar 9, 2025 · Fundamentals

What Really Happens Inside Python When You Call a Function?

This article explains step by step how Python creates a function object, builds a call stack, handles parameters, executes the body, performs garbage collection, and manages recursion, illustrating each stage with clear code examples and diagrams.

Garbage CollectionParameter PassingPython
0 likes · 8 min read
What Really Happens Inside Python When You Call a Function?
Satori Komeiji's Programming Classroom
Satori Komeiji's Programming Classroom
Nov 7, 2024 · Fundamentals

How Does Python’s VM Implement and Throw Exceptions?

The article dissects Python’s exception mechanism, showing how the interpreter and virtual machine raise, record, and propagate errors via thread‑state objects, traceback chains, and C‑level APIs, while also illustrating generator return values, Java checked exceptions, and the final printing of tracebacks.

C APIException HandlingRuntime
0 likes · 16 min read
How Does Python’s VM Implement and Throw Exceptions?
Ops Development & AI Practice
Ops Development & AI Practice
May 21, 2024 · Fundamentals

Mastering Call Stacks and Stack Frames: A Deep Dive for Developers

Understanding how call stacks and stack frames work is essential for developers, and this article explains their dynamic, ordered, and local nature, details stack frame structure, walks through a Go code example illustrating function calls and returns, and shows how to leverage runtime utilities for debugging.

Go languageRuntimecall stack
0 likes · 7 min read
Mastering Call Stacks and Stack Frames: A Deep Dive for Developers
Su San Talks Tech
Su San Talks Tech
Nov 4, 2023 · Fundamentals

Unlock Java’s Secrets: How Bytecode Powers Cross‑Platform Execution

This article introduces Java’s bytecode fundamentals, explaining how the JVM translates compiled class files into platform‑independent instructions, the role of dynamic linking, stack frames, operand stacks, and common bytecode mnemonics, while providing code examples and visual diagrams to deepen understanding.

JVMdynamic linkingjava
0 likes · 17 min read
Unlock Java’s Secrets: How Bytecode Powers Cross‑Platform Execution
JD Cloud Developers
JD Cloud Developers
Aug 8, 2023 · Fundamentals

How Does the JVM Choose the Right Method? Inside Stack Frames and Dynamic Dispatch

This article explains how Java’s JVM uses stack frames, local variable tables, operand stacks, dynamic linking, and method return addresses to manage method calls, detailing the distinction between static and dynamic dispatch, the role of non‑virtual methods, and how the invokevirtual instruction resolves the correct implementation at runtime.

Dynamic DispatchJVMMethod Dispatch
0 likes · 15 min read
How Does the JVM Choose the Right Method? Inside Stack Frames and Dynamic Dispatch
Tencent Cloud Developer
Tencent Cloud Developer
Aug 8, 2022 · Fundamentals

Deep Dive into Function Call Implementation: From Assembly to CPU Registers

This article thoroughly explains low‑level function call implementation, covering Intel and AT&T assembly syntax, the evolution of CPU registers from 16‑bit to 64‑bit x86, caller‑ and callee‑saved conventions, stack‑based to register‑based parameter passing, stack frame setup, and assembly representations of control structures.

Assembly LanguageCPU architectureCPU registers
0 likes · 23 min read
Deep Dive into Function Call Implementation: From Assembly to CPU Registers
IT Services Circle
IT Services Circle
Apr 6, 2022 · Fundamentals

Understanding Function Calls and Stack Frames in Memory

This article explains how function calls are implemented using a stack‑based memory model, describing stack frames, the role of base and stack pointer registers, and the assembly instructions that create and dismantle these frames during program execution.

AssemblyC ProgrammingFunction Calls
0 likes · 7 min read
Understanding Function Calls and Stack Frames in Memory
Java Captain
Java Captain
Jun 25, 2020 · Fundamentals

Understanding Java Increment Operators and JVM Stack Frame Behavior

This article explains how Java's post‑ and pre‑increment operators affect variable values by tracing each statement through the JVM's stack frame, local variable table, and operand stack, and demonstrates the resulting values of i, j, and k with detailed diagrams and code examples.

JVMincrement operatorsjava
0 likes · 4 min read
Understanding Java Increment Operators and JVM Stack Frame Behavior
360 Tech Engineering
360 Tech Engineering
Dec 20, 2018 · Fundamentals

Understanding Tail Call Optimization in Objective‑C

This article explains the concept of tail call optimization in Objective‑C, illustrates correct and incorrect tail‑call examples, describes how the compiler reuses stack frames to achieve O(1) space complexity, and demonstrates the optimization with visual demos and practical code.

Objective‑CTail Call OptimizationiOS
0 likes · 6 min read
Understanding Tail Call Optimization in Objective‑C
MaGe Linux Operations
MaGe Linux Operations
Oct 26, 2017 · Fundamentals

Unlocking Python Generators: How They Work Under the Hood

This article explains the inner mechanics of Python generators, covering how the interpreter executes functions, the role of stack frames and bytecode, the generator flag, and how send, yield, and StopIteration interact, illustrated with detailed code examples and disassembly.

GeneratorsPythonStopIteration
0 likes · 8 min read
Unlocking Python Generators: How They Work Under the Hood
ITPUB
ITPUB
Oct 31, 2016 · Information Security

Uncovering Linux Buffer Overflow Exploits: Stack Frames, Code Samples, and Defense

This article explains Linux process address space layout and stack‑frame structure, demonstrates a classic buffer‑overflow attack with full source code and compilation steps, analyzes how the exploit gains root privileges, and discusses why modern compilers and shells affect the attack's success.

Exploitbuffer overflowsecurity
0 likes · 15 min read
Uncovering Linux Buffer Overflow Exploits: Stack Frames, Code Samples, and Defense