Skip to content

Prefer the tail-calling interpreter by default when supported #162637

In progress

Description

@diegorusso

Feature or enhancement

Tail calling interpreter has now broad support across compilers and platforms/architectures.

Use tail calls by default with GCC 16+ or supported Clang 19+ on Unix, and with supported clang-cl or optimized MSVC on Windows.
For MSVC, the minimum toolset is:

  • 14.50 on x64
  • 14.52 on Arm64

Fall back to computed gotos where available, then switch dispatch, and preserve explicit build overrides.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Activity

  1. added
    type-feature
    on Nov 25, 2026
  2. self-assigned this
    on Nov 25, 2026
  3. added
    build
    on Nov 25, 2026
  4. added
    interpreter-core
    performance
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buildinterpreter-coreperformancetype-feature

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions