# YARV's Internal Stack and Your Ruby Stack

DevFeed: [YARV's Internal Stack and Your Ruby Stack](<https://devfeed.tech/articles/yarv-s-internal-stack-and-your-ruby-stack-31807.md>)

Original publisher: [Read original article](<https://patshaughnessy.net/2025/11/10/yarvs-internal-stack-and-your-ruby-stack>)

Author: Pat Shaughnessy

Published: 2025-11-10T00:00:00Z

Content type: article

Language: en

Sources: [Pat Shaughnessy](<https://devfeed.tech/sources/pat-shaughnessy.md>)

Topics: [Ruby](<https://devfeed.tech/topics/ruby.md>), [Code](<https://devfeed.tech/topics/code.md>), [structure](<https://devfeed.tech/topics/structure.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [ruby](<https://devfeed.tech/tags/ruby.md>), [structure](<https://devfeed.tech/tags/structure.md>), [updating-ruby-under-a-microscope](<https://devfeed.tech/tags/updating-ruby-under-a-microscope.md>)

## AI overview

This article explains how YARV, Ruby's stack-oriented virtual machine, uses an internal stack and a second stack of rb_control_frame_t structures to track Ruby program call frames.

## Source excerpt

I've started working on a new edition of Ruby Under a Microscope that covers Ruby 3.x. I'm working on this in my spare time, so it will take a while. Leave a comment or drop me a line and I'll email you when it's finished. The content of Chap